maven约定大于配置,写的配置文件无法导出或生效的问题,解决方法。在为啥有的用<filtering>false</filtering>可以解决,而有的要用<filtering>true</filtering>才能解决
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>/*.properties</include>
<include>/.xml</include>
</includes>
→→→→ <filtering>false</filtering>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/.properties</include>
<include>/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>
————————————————
<build>
<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>
</build>
————————————————