SpringBoot 使用feign时报错Service id not legal hostname(xx_sss)
原因是feign不支持下划线"_",支持"-",改成xx-sss即可
参考:https://github.com/spring-cloud/spring-cloud-netflix/issues/1582
- Does ribbon support those chars like "_" ? (Though hostname should not contain "_" , but I think it's better to support this feature.)
- If not, I think we Spring Cloud should mention it, .
最后
以上就是兴奋御姐最近收集整理的关于SpringBoot 使用feign时报错Service id not legal hostname的全部内容,更多相关SpringBoot内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复