java - spring cloud eureka,ribbon restTemplate 访问问题
黄舟2017-04-18 10:33:22
0
4
662
入图,在eureka中心已经有了这个服务者,服务者的配置信息如下
但是通过以下代码:
访问时一直提示: I/O error on GET request for "http://client": Connection refused: connect; nested exception is java.net.ConnectException: Connection refused: connect
官方文件是這麼寫
訪問方式不一樣啊
參考http://cloud.spring.io/spring...
help me ....各位大大
配置過這個
@EnableDiscoveryClient
註解了嗎?