原因1.健康检查点没有启动
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
2.健康检查路径设置不正确
server.servlet.context-path=/platform/v1
spring.cloud.consul.discovery.healthCheckPath=/${server.servlet.context-path}/actuator/health
spring.cloud.consul.discovery.healthCheckInterval=10s
3.同时启动两个相同服务,但是只看到一个,是因为注册实例id是一样的
spring.application.name=platformservice
spring.application.instance_id=${spring.application.name}:comma,separated,profiles:${server.port}