Recently I built the springboot project, and I couldn't import it after using this annotation. At first, I suspected that it was a network problem at home or the cause of the version. Later I found the cause.
First open the version repository for the project maven, find
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-config-server</artifactId> </dependency>
Corresponding warehouse, if you see the unknown folder, it means that the referenced version is wrong, you need to add another
<dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-dependencies</artifactId> <version>Camden.SR7</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement>
To solve the problem