MAVEN在打包将包下面的配置文件也包含进去
<build> <resources> <resource> <directory>src/main/java</directory> <excludes> <exclude>**/*.java</exclude> </excludes> </resource> </resources> </build>
以上是把配置文件打到所在包下,下面的是针对resource下面的配置文件的
<resource> <directory>src/main/resources</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> </resource>