1.情況
最近用IntelliJ IDEA學習Spring Boot,默認從https://start.spring.io下載框架,但是一直提示找不到依賴,開始以爲網不好,弄了4個小時;
2.思考
於是我找到昨天能正常下載的項目在pom.xml中發現spring-boot-starter-parent的版本不一樣
嘗試了把,2.2.6換成2.2.5但是還是不行;因爲pom.xml中其他文件也不一樣;導致還是不行,比如說spring-boot-starter-test;我想2.2.6和2.2.5在下載的時候是一組一組的,單獨改成2.2.5並不能解決問題
3.解決
後來我想着換遠程倉庫吧,我原來配的是aliyun的倉庫,換了jboss,聽名字感覺挺牛*的,結果還是不行
再後來發現,原來https://spring.io,也有倉庫,試試吧,結果就ok了:
< mirror>
< id> sprintio< / id>
< mirrorOf> central< / mirrorOf>
< name> Human Readable Name for this Mirror. </ name>
< url> https: / / repo. spring. io/ libs- snapshot/ < / url>
< / mirror>
4.昇華
想着還是把倉庫都總結一下,正好發現前輩寫倉庫大全的博客,感謝之情,共享下地址:
https://blog.csdn.net/Hello_World_QWP/article/details/82459915
5.ok了,88