Failure to transfer org.springframework.bootspring-boot-starter-parentpom2.4.3错误详解

Failure to transfer org.springframework.bootspring-boot-starter-parentpom2.4.3错误详解_第1张图片
今天在构建springcloud微服务的时候,导入相关依赖,发现pom.xml报错了,报错信息如下:

Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:2.4.3 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.4.3 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.4.3/spring-boot-starter-parent-2.4.3.pom

根据这条错误,我在StackOverflow上找到了答案,作者是这样说的:
Failure to transfer org.springframework.bootspring-boot-starter-parentpom2.4.3错误详解_第2张图片
对应的操作为:
Failure to transfer org.springframework.bootspring-boot-starter-parentpom2.4.3错误详解_第3张图片
与此同时,还有一个问题,idea提示Project 'org.springframework.boot:spring-boot-starter-parent:2.4.3' not found未找到。
Failure to transfer org.springframework.bootspring-boot-starter-parentpom2.4.3错误详解_第4张图片
在网上找到一个回答,说可以降低版本,然后再试试,发现果然成功了。
Failure to transfer org.springframework.bootspring-boot-starter-parentpom2.4.3错误详解_第5张图片

你可能感兴趣的:(java,spring,boot,java,微服务,运维,后端)