mybatis使用时org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):的错误

最近在使用mybatis时,出现了 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): 这个错误,定位了半天发现是 mapper.xml文件中的<mapper namespace="xxx.xxxx.xxxx"> ,namespace 路径错误。

出现这个错误一般有以下原因导致:

namespace 错误, 是否和dao接口对应了。

parameterType 错误,是否和实体对应了。

原文地址:https://www.cnblogs.com/blacksonny/p/5629010.html