其他分享
首页 > 其他分享> > Springboot:Cannot resolve org.springframework.boot:spring-boot-autoconfigure:2.6.2

Springboot:Cannot resolve org.springframework.boot:spring-boot-autoconfigure:2.6.2

作者:互联网

 

maven导入报错

Cannot resolve org.springframework.boot:spring-boot-autoconfigure:2.6.2

 

解决1:

删除本地maven对应的包重新下载

 

解决2:

可能是springboot版本问题,降低版本(之前是2.6.2不可以。改成2.5.7就行了)

 <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.5.7</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

 

标签:resolve,Springboot,spring,boot,springframework,autoconfigure,org,2.6
来源: https://www.cnblogs.com/Hello233/p/15954294.html