Invalid bound statement (not found) 找不到mapper 映射文件异常

时间:2024-08-14 21:35:38

访问页面报如下错(注意第一行后面的 invalid bound statement (not found))

Invalid bound statement (not found) 找不到mapper 映射文件异常

这时候再mapper的pom.xml文件要加如下。 否则该节点mybatis的mapper.xml会被漏掉

     <build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>

----------------------------------------------打赏码--------------------------------

Invalid bound statement (not found) 找不到mapper 映射文件异常