当前位置:   article > 正文

com.netflix.discovery.DiscoveryClient - DiscoveryClient_UNKNOWN/_com.netflix.discovery.discoveryclient : discoveryc

com.netflix.discovery.discoveryclient : discoveryclient_unknown/192.168.3.34

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/


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

解决:
  1. client:
  2. register-with-eureka: false
  3. fetch-registry: false




声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号