1、错误信息:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
出现此错误时:
1、除了查看代码上的各种名称,映射之类能否找到外。
2、查看下target中是否有对应的xml文件,因为maven默认是不会把非resource中的xml打包进target的
解决方案:pom.xml
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/*</include>
</includes>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
</resources>
</build>
标签:xml,binding,bound,Invalid,ibatis,statement,apache
From: https://www.cnblogs.com/xiaonuanxin/p/17483341.html