springcloud ribbon实现负载均衡的时候,Request URI does not contain a valid hostname: http://PRODUCT_SERVICE/

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

解决方案:
使用ribbon实现负载均衡的时候,服务名称不能用下划线,换成中划线。

posted @ 2019-09-11 16:34  今天又下小雨  阅读(1342)  评论(0)    收藏  举报