項目A引用項目B
A項目中pom引入沒有報錯,但是:
1,idea裡面代碼提示都能找打類,引入進來後就報錯了
2,sts裡面直接的代碼提示都找不到
解壓B的jar,發現目錄是:

路徑不對,解決辦法:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
在B項目的pom裡面加上這個,會去掉BOOT-INF目錄,直接代碼目錄就在外面