报错:Invalid bound statement (not found)
可能是如下问题:
1、application配置文件里的mapper-location写没写对
2、mapper接口上是否加了@Mapper或者启动类是否上加了@MapperScanner
3、xml文件被过滤了,需在pom.xml文件中加上:
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<!--src/main/java目录下的**/*.xm都会被扫到-->
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>