查了好多篇文章,都说要导入证书,但是还是不行
更改 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 试试