报错: Invalid bound statement (not found):com.beauxie.wxj.dao.UserMapper.findUserByCondition
解决方法,在 pom.xml 中<build></build>标签中加入以下代码
- <resources>
- <resource>
- <directory>${basedir}/src/main/java</directory>
- <includes>
- <include>**/*.xml</include>
- </includes>
- </resource>
- </resources>
在使用IDEA进行Maven项目开发时遇到问题,当尝试访问mapper.xml中的SQL映射文件时,出现'Invalid bound statement (not found)'错误。解决这个问题的方法是在pom.xml的<build>标签内添加<resources>配置,将src/main/java目录下的所有.xml文件包含进来,确保编译时能正确找到mapper.xml文件。
9957

被折叠的 条评论
为什么被折叠?



