在pom.xml加入
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<build>
<resources>
<resource>
<directory>${basedir}/src/main/java</directory>
<includes>
<include>**
/*.properties</include>
<include>**/
*.xml</include>
</includes>
</resource>
<resource>
<directory>${basedir}/src/main/resources</directory>
</resource>
</resources>
</build>
|
2、对项目进行清理编译