码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2018-11-22 02:41:57      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:运行   mybatis   配置文件   use   ati   bin   ibatis   ring   statement   

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):

标签:运行   mybatis   配置文件   use   ati   bin   ibatis   ring   statement   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!