Idea Maven调试properties 找不到报错

问题: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>

  

参考iteye_2927的文章

posted @ 2020-03-21 02:15  ☆♂安♀★  阅读(910)  评论(0编辑  收藏  举报