欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

打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>
相关标签: pom