Spring Cloud和Spring Boot版本问题导致Nacos 注册失败!

之前学习consul注册中心的时候就遇到版本问题,这次学习nacos的时候又遇到版本问题,可惜没长记性,排查了一天最后才发现是boot和cloud的版本有问题。

记录一下,防止以后再出现这种浪费时间的事,

解决方法:

我使用的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>
原文地址:https://www.cnblogs.com/yang-xiansen/p/11604717.html