Invalid bound statement (not found): com.ruoyi.system.mapper.UserMapper.selectUserList
Springboot项目如果出现错误Invalid bound statement (not found): com.ruoyi.system.mapper.UserMapper.selectUserList解决办法:在mapper工程下的pom文件中加入下面的内容,让mapper映射文件加载到target的classes中去<!-- 如果不添加此节点mybatis的mapper.xml文件
·
Springboot项目如果出现错误
Invalid bound statement (not found): com.ruoyi.system.mapper.UserMapper.selectUserList
解决办法:在mapper工程下的pom文件中加入下面的内容,让mapper映射文件加载到target的classes中去
<!-- 如果不添加此节点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>
更多推荐
已为社区贡献1条内容
所有评论(0)