eureka客户端使用ribben拉取服务时报错,找不到服务解决办法

问题描述: 
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalStateException: Request URI does not contain a valid hostname:http://hello_service/hello。

解决方案: 
找了一下午问题终于找到了。使用ribbon实现负载均衡的时候,服务名称不能用下划线,将下划线去掉问题解决。

转载于:https://my.oschina.net/heguojun/blog/1826507

猜你喜欢

转载自blog.csdn.net/weixin_34150503/article/details/91945021