org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.coder520.mamabike.user.dao.UserMapper.selectByPrimaryKey
2017-12-13 21:33
387 查看
这个异常是IDEA中漏加载mapper.xml文件,在classes中没找到,所以要在配置文件中加入:
!--如果不添加此节点mybatis的mapper.xml文件都会被漏掉。--> <build> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <filtering>false</filtering> </resource> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <filtering>false</filtering> </resource> </resources> </build>
相关文章推荐
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- 关于mybatis “org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)” 错误的问题。
- mybatis绑定错误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: Invalid bound statement (not found)
- mybatis使用bug:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
- 【异常】Caused by: 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: Invalid bound statement (not found)?
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- mybatis+springmvc:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- spring boot 整合mybatis org.apache.ibatis.binding.BindingException: Invalid bound statement(not found)
- maven请求报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- 关于整合SSH,出现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: Invalid bound statement (not found): com.yolly.platform.
- 疑难杂症(4) -- 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: Invalid bound statement (not found)
- mybatis maven打包出现org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)错误