Recently I am building a maven+springMVC+mybatis project. When compiling, the **Mapper.xml file generated by mybatis is always not compiled (it does not appear in the classes folder).
The solution is to add
<resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <!-- 是否替换资源中的属性--> <filtering>false</filtering> </resource> <resource> <directory>src/main/resources</directory> <!-- <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <filtering>true</filtering> --> </resource> </resources>
The above is the detailed content of Solution to the problem that maven project does not compile xml files. For more information, please follow other related articles on the PHP Chinese website!