Eureka Server启动之后,client启动的时候报错“Unregistering application CLIENT with eureka with status DOWN”。
检查配置文件,发现并无问题:
eureka:
client:
service-url:
defaultZone: http://localhost:8761/eureka/
spring:
application:
name: client
解决方法:
引入web模块,如下:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>