静态资源导出问题 ==> 目的是把src/main/java和src/main/resource目录中的xml文件和properties配置文件包含到输出结果中,输出到classes目录中
注意:该段代码要与<dependecies>
标签同级,父标签是<project>
<!--静态资源导出问题-->
<build>
<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>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>