在pom.xml文件中加上下面的内容,告诉在编译的时候将properties文件也加进去

    <build>
        <resources>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.properties</include>
                </includes>
            </resource>
        </resources>
    </build>

 

相关文章:

  • 2021-04-22
  • 2021-08-24
  • 2021-07-22
  • 2022-01-09
  • 2022-12-23
  • 2021-06-07
  • 2021-10-10
  • 2021-11-14
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-03
  • 2021-09-10
  • 2021-11-08
  • 2022-01-08
相关资源
相似解决方案