您的位置:首页 > 运维架构 > Apache

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

2016-06-30 09:56 976 查看

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

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

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

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

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: