初始化springboot 报错 unable to find valid certification path to requested target 不是证书的问题 是版本问题

查了好多篇文章,都说要导入证书,但是还是不行

更改 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.bootgroupId>
        <artifactId>spring-boot-starter-parentartifactId>
        <version>2.1.0.RELEASEversion>
        <relativePath/> 
    parent>

如果还不行 就执行一下install 试试

你可能感兴趣的:(后端,java)