使用spring initializr創(chuàng)建maven程序, 在intellij idea中打開(kāi)時(shí)報(bào)錯(cuò): Failure to find org.springframework.boot:spring-boot-starter-parent:pom:3.0.1-SNAPSHOT in http://maven.aliyun.com/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus-aliyun has elapsed or updates are forced
原因百度了一圈 說(shuō)是因?yàn)槲覀儼裮aven的下載源改成了阿里云, 但是阿里云還沒(méi)有同步一些關(guān)鍵組件
解決方法: 在pom.xml中把spring-boot-starter-parent:pom的版本降到2.X的版本就可以。如下圖所示
控制臺(tái)就不報(bào)錯(cuò)了
我這里的java版本是17,使用3.0.0這個(gè)版本加載依賴時(shí)不會(huì)報(bào)錯(cuò),但是在啟動(dòng)服務(wù)的時(shí)候就會(huì)報(bào)錯(cuò)
解決如下:文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-595694.html
http://t.csdn.cn/CWlIf
有問(wèn)題可加v 876942434 ,一起交流 一起進(jìn)步~文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-595694.html
到了這里,關(guān)于Failure to find org.springframework.boot:spring-boot-starter-parent:pom:3.0.1-SNAPSHOT的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!