问题:maven执行package命令打包时,src/main/java路径下的properties文件偶尔丢失
解决方式:pom.xml中加入resources配置
<build> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> </includes> </resource> <resource> <directory>src/main/resources</directory> </resource> </resources> </build>
原文地址:https://www.cnblogs.com/zhian/p/12536274.html
时间: 2024-10-05 08:04:12