com.netflix.discovery.DiscoveryClient - DiscoveryClient_UNKNOWN/

宋斌
2023-12-01

com.netflix.discovery.DiscoveryClient - DiscoveryClient_UNKNOWN/

启动spring cloud报错
com.netflix.discovery.DiscoveryClient - DiscoveryClient_UNKNOWN/

配置文件:
eureka:
  server:
    enable-self-preservation: false
    eviction-interval-timer-in-ms: 4000
  instance:
    prefer-ip-address: true
    hostname: localhost
  client:
    register-with-eureka: true
    fetch-registry: true
    service-url:
      defaultZone: http://localhost:${eureka.port:20173}/eureka/


原因:
启动的时候自己注册自己,这个问题可以忽略,但是觉得不好看的话,下面是解决方案。

解决:
  client:
    register-with-eureka: false
    fetch-registry: false




 类似资料:

相关阅读

相关文章

相关问答