在开发mybatis项目时,很多时候我们要把配置文件放在src/main/java目录下,可是maven在编译项目时,默认不把src/main/java目录下的*.xml拷贝到classes目录下,那么就需要我们配置maven
<build> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> <include>**/*.tld</include> </includes> <filtering>true</filtering> </resource> </resources> </build>
maven开发mybatis 让*.xml 拷贝到classes目录下
时间: 2024-10-12 05:58:19