org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
如出这种问题,导致的原因是mapp.xml没有放在资源文件中,在编译的时候 iida不会酱 诸如.xml文件编译到classes下面,应该要告诉IDE 酱mapp.xml文件编译到classes文件中。请在pom.xm 的<build>中加入如下代码:
<resources>
<resource>
<directory>src/main/Java</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.* </include>
</includes>
</resource>
</resources>