2019-10-31|2019-10-31 spring Cloud 无法注册到nacos问题

最近在学习nacos的使用,按照官方文档写了一个SpringCloud+nacos的小demo,却发现注册进nacos注册中心,日志是这样的:
2019-10-31|2019-10-31 spring Cloud 无法注册到nacos问题
文章图片
注册不上日志 后来发现我springboot的版本是2.2.0.RELEASE
降低到 2.0.8.RELEASE后就能注册了,和nacos的官网说明:版本 0.2.x.RELEASE 对应的是 Spring Boot 2.x 版本,版本 0.1.x.RELEASE 对应的是 Spring Boot 1.x 版本有些偏差。
此处:nacos 1.1.4、
pom.xml如下

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0

org.springframework.boot
spring-boot-starter-parent
2.0.8.RELEASE


com.candy
nacos-remotecall
0.0.1-SNAPSHOT
nacos-remotecall
Demo project for Spring Boot
【2019-10-31|2019-10-31 spring Cloud 无法注册到nacos问题】
1.8
4.10
Finchley.SR2





org.springframework.boot
spring-boot-starter-web


org.springframework.cloud
spring-cloud-starter-alibaba-nacos-discovery
0.9.0.RELEASE


org.springframework.cloud
spring-cloud-starter-openfeign
2.0.0.RELEASE


org.springframework.boot
spring-boot-starter-test
test


org.junit.vintage
junit-vintage-engine




junit
junit
${junit.version}
test





org.springframework.cloud
spring-cloud-dependencies
${spring-cloud.version}
pom
import






org.springframework.boot
spring-boot-maven-plugin




    推荐阅读