Spring Cloud stepped pit notes Two: Start Eureka project report com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused: connect abnormalities

Recently the learning process in Spring Cloud stepped on a lot of the pit, for example, I simply set up a service registry, and then they reported a lot of anomalies,

com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused: connect
Caused by: java.net.ConnectException: Connection refused: connect
com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server

There are three exceptions, do not worry These anomalies appear, the configuration file to see if you have this configuration

With this configuration also being given, do not worry, you look at the contents of the configuration file written right, such as indentation is correct, there are spaces Yeah, colon and the like, their own check.
I reported this very reason is, I indent a little problem, I inadvertently configured into two lines to the client of a service-url below this.

Finally, we welcome the public attention to my number, learning together

Guess you like

Origin www.cnblogs.com/wangrong1/p/12195824.html