直接在pom.xml文件中加入下列对应的文件格式到<build>即可,如果其他后缀文件也是
读取不到,那么在<includes></includes>中新增<include>**/*.properties</include>即可。
<build>
<!--扫描到resources下的xml等资源文件-->
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</build>