首页 > Web开发 > 详细

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):

时间:2018-11-22 02:06:18      阅读:187      评论:0      收藏:0      [点我收藏+]
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.dao.RoleDao.getRole

在Spring整合Mybatis中爆出这个错。

在mybatis配置文件中原来写法为:

<mappers>
    <package name="com.mapping" />
</mappers>

将其改成

<mappers>
    <mapper resource="com\mapping\roleMapper.xml"></mapper>
    <mapper resource="com\mapping\userMapper.xml"></mapper> 
</mappers>

就可以运行了,按照道理来说两种方式应该都是可以运行的,莫非Spring只支持resource这一种配法?

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):

原文:https://www.cnblogs.com/bihanghang/p/9998736.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!