给pom.xml的下添加
<resources>
<resource>
<!--源文件位置-->
<directory>src/main/java</directory>
<includes>
<!--要把哪些文件编辑过去-->
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<!--源文件位置-->
<directory>src/main/resources</directory>
<includes>
<!--要把哪些文件编辑过去-->
<include>**/*.*</include>
</includes>
</resource>
<resource>
<!--源文件位置-->
<directory>src/main/resources</directory>
<includes>
<!--要把哪些文件编辑过去-->
<include>**/*.*</include>
</includes>
</resource>
<resource>
<!--源文件位置-->
<directory>src/main/webapp</directory>
<!--变异到META-INF/resources目录下-->
<targetPath>META-INF/resources</targetPath>
<includes>
<!--要把哪些文件编辑过去-->
<include>**/*.*</include>
</includes>
</resource>
</resources>