<build>
<!--告诉maven将项目源码中的xml文件也进行编译,并放到编译目录中-->
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
09-09
653
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-06
284
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)