查了好多篇文章,都說要導入證書,但是還是不行
更改 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 試試