初始化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.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.1.0.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

如果還不行 就執行一下install 試試

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章