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客户端时遇到的服务ID包含下划线导致的错误,并给出了修改服务ID中下划线为连字符的解决方案。
1287

被折叠的 条评论
为什么被折叠?



