在使用springCloud中的eureka注册中心的时候,启动后报错:
There was a problem with the instance info replicator
com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server
问题解决:
eureka.client.serviceUrl.delaultZone写错了,应该是eureka.client.serviceUrl.defaultZone
错误原因猜测:
eureka找不到注册地址,所以尝试自己作为客户端来尝试注册它自己
若是未禁用eureka服务注册中心的客户端注册行为,需提供service-url注册中心地址。