标签:csdn lan target 方式 pre mave resources 找不到 resource
问题: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>
标签:csdn lan target 方式 pre mave resources 找不到 resource
原文地址:https://www.cnblogs.com/zhian/p/12536274.html