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>