org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
在使用Intellij IDEA开发时,打包时,mapper没有自动复制到响应位置,也会出错。在pom.xml中build节点添加以下配置:
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>