springboot中mybatis报Invalid bound statement (not found)
解决方案
在pom中加入
<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>
<build>
在 yml 中配置 mybatis
mybatis:
mapper-locations: classpath:mapper/*.xml
mapper的位置如下:
展示如下: