参考文档
https://github.com/alibaba/spring-cloud-alibaba/blob/master/spring-cloud-alibaba-examples/nacos-example/nacos-discovery-example/readme-zh.md
4.0.0 org.springframework.boot spring-boot-starter-parent 2.2.6.RELEASE cn.rx three 0.0.1-SNAPSHOT three Demo project for Spring Boot 1.8 org.springframework.boot spring-boot-starter org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-test test com.alibaba.cloud spring-cloud-starter-alibaba-nacos-discovery com.alibaba.cloud spring-cloud-alibaba-dependencies 2.2.6.RELEASE pom import org.springframework.boot spring-boot-maven-plugin
1、Error creating bean with name ‘configurationPropertiesBeans‘ defined in class path resource
可能的原因是springboot和alibabacloud的版本不匹配,我遇到的是springboot版本过高,适当降低版本后解决
2、java.lang.IllegalArgumentException: Param ‘serviceName’ is illegal, serviceName is blank
配置文件没有设置服务名
#spring.application.name=服务名
3、服务要被nacos发现,这个依赖也是必须的
org.springframework.boot spring-boot-starter-web
服务注册成功



