在pom.xml中配置以下代码解决导出问题
(解决办法来自狂神)
<!-- 配置maven静态资源过滤问题-->
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>标签:xml,src,导出,maven,失败,main,true From: https://www.cnblogs.com/mo-de/p/16719948.html
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</build>