spring-boot项目打包时候出现boot-inf文件夹的问题
生活随笔
收集整理的這篇文章主要介紹了
spring-boot项目打包时候出现boot-inf文件夹的问题
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.spring-boot maven打包,一般pom.xml文件里會加<plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
這樣打的jar里會多一個目錄BOOT-INF。2.引起問題,程序包不存在。3.解決辦法,如果A子模塊包依賴了B子模塊包,在B子模塊的pom文件,加入<plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId><configuration><skip>true</skip></configuration>
</plugin>
總結
以上是生活随笔為你收集整理的spring-boot项目打包时候出现boot-inf文件夹的问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: idea 快捷键在方法上抛出异常
- 下一篇: maven <skip></skip>属