IDEA常見問題之不能正確打包和讀取到配置檔案xml、properties、conf等
阿新 • • 發佈:2018-12-16
1.不能讀取到一些資料夾下的檔案(pom檔案的引入)
<build> <resources> <resource> <directory>src/main/java</directory> <includes> <include> **/*.xml </include> <include> **/*.properties </include> </includes> </resource> </resources> </build>
2.不能打包resource下資源(pom檔案的引入)
<finalName>MobileSchool-chat</finalName>
<resources> <resource> <directory>src/main/resource</directory> <includes> <include>**/*.xml</include> <include>**/*.properties</include> </includes> <filtering>true</filtering> </resource> </resources>
個人微信歡迎交流java開發中的問題