报com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused: connectjava
或者com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server 错api
解决办法 修改配置文件 registerWithEureka、fetchRegistry 为falsefetch
eureka: instance: hostname: localhost client: serviceUrl.defaultZone: http://localhost:8000/eureka/ registerWithEureka: false fetchRegistry: false
若是配置文件也是这个,以前启动均可以,可是忽然就不行了,个人就是这个问题。重启项目,重启电脑都没有解决,能够试下clean、从新打jar包,我是经过这种方式解决的。.net