org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
来源:互联网 发布:虚拟机上安装linux 编辑:程序博客网 时间:2024/06/04 18:14
今天,使用Maven在做mabatis逆向工程时出现了各个坑爹的错误,折腾了一下。终于解决了,特此和大家分享一下。
错误类型:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)【无效的绑定】
错误原因:
mybatis动态dao,需要相应的mapper.xml文件与mapper放置在同一目录下(打开自己的项目路径target/classes目录下,你会看到只有mapper接口,没有mapper.xml文件。),由于maven会把位于src/main/java中的mapper.xml文件给忽略。
解决办法:
只需在maven工程的pom.xml文件中,增加如下内容:
<build> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> </includes> <filtering>false</filtering> </resource> </resources> </build>
阅读全文
0 0
- 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)
- 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)
- 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):
- 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)
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- Unity中运用MySql代码
- ASP.NET介绍
- 2017icpc北京赛区网络赛E题(计算几何)
- nyoj 1185 线段树区间最大最小值
- wind10 安装oracle11gR2 出现ins13001 环境不满足最低要求
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- 浅谈网站推广
- springboot+gradle集成redis实现动态存储值
- DP
- 数据结构——KMP算法
- SpringMVC学习日记 1.Spring框架
- 递归之汉诺塔问题
- centos dhclient 无法租赁IP地址
- Substring with Concatenation of All Words