在开发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目录下,布布扣,bubuko.com
maven开发mybatis 让*.xml 拷贝到classes目录下
原文:http://my.oschina.net/KingPan/blog/299175