Error creating bean with name ‘configDataContextRefresher‘ defined in class path resource

The cause of the problem: When creating the springboot project, the related components of cloud were introduced, but the version of springboot was too high later, so the version was manually lowered. Here comes the problem. At this time, there is a mismatch between springboot and cloud versions. The following is the compatibility table of the two versions. Please modify the corresponding versions by yourself.
insert image description here

For example, my springboot version is 2.2.3,

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

Then the corresponding springcloud version is H, and Spring Cloud Alibaba version is 2.1.0

<dependencyManagement>
        <dependencies>
            <!--Spring Cloud-->
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>Hoxton.RELEASE</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <!--Spring Cloud Alibaba-->
            <dependency>
                <groupId>com.alibaba.cloud</groupId>
                <artifactId>spring-cloud-alibaba-dependencies</artifactId>
                <version>2.1.0.RELEASE</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
</dependencyManagement>

Guess you like

Origin blog.csdn.net/weixin_42194695/article/details/126075898
Recommended