EurekaServer启动时报错com.netflix.discovery.shared.transport.TransportException

燕青青
2023-12-01
2020-12-04 15:52:02.812 ERROR 17484 --- [           main] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_DEMO-EUREKA/DESKTOP-JGC51RU:demo-eureka:8099 - was unable to refresh its cache! status = Cannot execute request on any known server

com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server
	at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:112) ~[eureka-client-1.9.3.jar:1.9.3]
	at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getApplications(EurekaHttpClientDecorator.java:134) ~[eureka-client-1.9.3.jar:1.9.3]
  • 处理办法:
    将yml配置文件中这个参数设置为false
#是否从eureka服务器获取注册信息
    fetch-registry: false
 类似资料: