解决maven项目不会预读xml文件,Invalid bound statement (not found): com.starry.dao.IUserDao.selAll

来源:互联网 发布:西游记 知乎 编辑:程序博客网 时间:2024/06/05 17:40

Invalid bound statement (not found): com.starry.dao.IUserDao.selAll

dao层中xml文件不会被预读

在pom.xml文件中加入

在<build>标签中插入下面的代码:
    <resources>      <resource>        <directory>src/main/java</directory>        <includes>          <include>**/*.properties</include>          <include>**/*.xml</include>        </includes>        <filtering>false</filtering>      </resource>    </resources>

然后这个错误就会解决
阅读全文
0 0