Spring Cloud Spring Boot version and problems caused Nacos registration failed!

Time to learn before the consul registry version encountered problems when they encounter this study nacos version of the problem, not a long memory, the last day of the investigation only to find that boot and cloud versions have problems.

Record it, to prevent such a waste of time later appear,

Solution:

我使用的springBoot是2.1.7.RELEASE的 对应的springcloud应该选择 Greenwich.SR2  配置如下:

<dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>Greenwich.SR2</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
</dependencyManagement>

 

Guess you like

Origin www.cnblogs.com/yang-xiansen/p/11604717.html