20220810 idea maven阿里雲鏡像 springboot項目啓動

1    問題

從spring官網當了個springboot項目,pom.xml文件如下兩行一直飄紅

        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.7.2</version>

提示報錯,not found

 

 

2    解決方案:

2.1    未解決_降低版本

和大多數人想法一樣,我覺得是spring官網出的新版本,阿里雲鏡像沒有對應的映射版本,所以嘗試了降低版本,結果未解決

 


 

2.3    解決_invalidate cashes

從網上嘗試用不同的組合搜,spring-boot-starter-parent + idea飄紅,spring-boot-starter-parent + settings.xml   ,終於搜到一種方案,

解決方法:File -> Invalidate Caches / Restart… -> Invalidate and Restart。

 

3    問題原因

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章