1. 程式人生 > >Maven打包,包下的xml丟失的解決

Maven打包,包下的xml丟失的解決

<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<!-- 是否替換資源中的屬性 -->
<filtering>false</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>