问题描述:
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalStateException: Request URI does not contain a valid hostname: http://euraka_server_user/user/getUser
截图:
定义服务名称用了下划线
解决方法:
使用ribbon实现负载均衡的时候,服务名称不能用下划线,换成中划线或者采用驼峰命名。