在我发现第一个错误的时候(com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused: connect),把fetch-registry: false加在80端口的yml文件中,就不会报错了。但是报错也不影响运行。
但是在我运行的时候,发现报了第二个错误(Load balancer does not have available server for client: xxx),要把这个配置删掉才正常。我的理解是:设置为false的时候获取不到注册服务信息,所以访问不了才报错。
fetch-registry:表示是否从Eureka Serve获取注册的服务信息 默认为true