com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused: connect
Caused by: java.net.ConnectException: Connection refused: connect
解决方法:
在application.yml文件中修改以下两个属性为false即可
register-with-eureka: false
fetch-registry: false
eureka:
client:
register-with-eureka: false
fetch-registry: false
serviceUrl:
defaultZone: http://localhost:18081/eureka/ # 指定注册中心的地址
instance:
preferIpAddress: true
本文链接:http://www.yayihouse.com/yayishuwu/chapter/1463