eureka
出现以上错误
om.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused: connect
2018 WARN 6864 --- [main] RetryableEurekaHttpClient: Request execution failure
2018 ERROR 6864 --- [main] com.netflix.discovery.DiscoveryClient : DiscoveryClient_UNKNOWN/DESKTOP-MQ8D0C9:8761 - was unable to refresh its cache! status = Cannot execute request on any known server
需要修改下 注册服务发现的 application.yml
在默认设置下,Eureka服务注册中心也会将自己作为客户端来尝试注册它自己,所以我们需要禁用它的客户端注册行为。 禁止方式如下
eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false