查了好多篇文章,都说要导入证书,但是还是不行
更改 spring-boot 版本为2.1.0 即可
原报错
Could not transfer artifact
org.springframework.boot:spring-boot-starter-parent:pom:2.2.5.RELEASE from/to nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public):
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target
pom.xml 修改为如下版本
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.0.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
如果还不行 就执行一下install 试试

本文解决了在使用Spring Boot 2.2.5.RELEASE版本时遇到的证书验证失败问题,通过将版本回滚到2.1.0.RELEASE,成功避免了因证书链无法建立而导致的依赖下载错误。
1095

被折叠的 条评论
为什么被折叠?



