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

匿名 (未验证) 提交于 2019-12-02 23:42:01

问题描述:
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

文章来源: https://blog.csdn.net/weixin_34150503/article/details/91945021
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!