打war包xml,properties文件没有打进去-解决方法
程序员文章站
2022-04-26 16:05:03
...
pom.xml文件里找到< build>下面的< resources>标签,然后在下面追加能把配置文件
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>