问题解决 : org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):

问题分析:

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): ,即在mybatis中dao接口与mapper配置文件在做映射绑定的时候出现问题,简单说,就是接口与xml要么是找不到,要么是找到了却匹配不到。

出错截图:

出错原因:

dao接口与xml的文件名不一致。

问题解决:

接口名与接口文件名都是IAccountDao, 而配置文件名为IAccountUserDao.xml,费了很大的劲才看到两者名字不一样!修改后就一切正常了。

问题总结:

这是一个很容易忽视的点,记住:接口名与Mybatis的映射文件名一定要一模一样。


原文:https://blog.csdn.net/sundacheng1989/article/details/81630370

posted @ 2019-07-09 13:50  wqkeep  阅读(283)  评论(0编辑  收藏  举报