我是靠谱客的博主 兴奋御姐,最近开发中收集的这篇文章主要介绍SpringBoot 使用feign时报错Service id not legal hostname,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
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 使用feign时报错Service id not legal hostname所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复