使用spring initializr创建maven程序, 在intellij idea中打开时报错: 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
原因百度了一圈 说是因为我们把maven的下载源改成了阿里云, 但是阿里云还没有同步一些关键组件
解决方法: 在pom.xml中把spring-boot-starter-parent:pom的版本降到2.X的版本就可以。如下图所示
控制台就不报错了
我这里的java版本是17,使用3.0.0这个版本加载依赖时不会报错,但是在启动服务的时候就会报错
解决如下:文章来源:https://www.toymoban.com/news/detail-595694.html
http://t.csdn.cn/CWlIf
有问题可加v 876942434 ,一起交流 一起进步~文章来源地址https://www.toymoban.com/news/detail-595694.html
到了这里,关于Failure to find org.springframework.boot:spring-boot-starter-parent:pom:3.0.1-SNAPSHOT的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!