由于 maven 的约定大于配置,可能导致我们写的配置文件无法导出的问题
解决方案:在 pom.xml 中添加如下代码即可解决
<!--在build中配置resources,来解决我们资源导出失败的问题-->
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</build>
标签:xml,src,导出,Maven,失败,main,true
From: https://www.cnblogs.com/sunzhongjie/p/17166225.html