idea maven项目找不到 mapper.xml sql映射文件问题

xiaoxiao2021-02-28  56

报错: 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> 

转载请注明原文地址: https://www.6miu.com/read-83234.html

最新回复(0)