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

Posted bihang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):相关的知识,希望对你有一定的参考价值。

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="commapping
oleMapper.xml"></mapper>
    <mapper resource="commappinguserMapper.xml"></mapper> 
</mappers>

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

以上是关于org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):的主要内容,如果未能解决你的问题,请参考以下文章

org.apache.ibatis.binding.BindingException原因汇总

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

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

org.apache.ibatis.binding.BindingException原因汇总

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

org.apache.ibatis.binding.BindingException导致的原因