Tag Archives: Springboot Import Error

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

maven import error

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

 

Solution 1:

Delete the package corresponding to the local maven and download it again

 

Solution 2:

It may be a springboot version problem, lower the version (2.6.2 can’t be used before. Just change to 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>