zbb20180716 SpringBoot 使用feign时报错Service id not legal hostname

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

原文地址:https://www.cnblogs.com/super-admin/p/9314372.html

时间: 2024-08-02 16:43:37

zbb20180716 SpringBoot 使用feign时报错Service id not legal hostname的相关文章

java.lang.IllegalStateException: Service id not legal hostname (leyou_item_service)

. ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.2.1.RELEASE)

安装Exchange 2010 & 2007 RU补丁时报错 Event ID: 1024 Error Code 1603

最近一个企业的朋友在部署 Exchange 2010 SP3 RU补丁的时候,无法安装补丁,并且一起遇到下图中的报错,再尝试了修改运行权限和关闭杀毒软件的办法后,依然无法解决. 后来查阅了一些KB发现,导致这个问题的最终原因是 UR补丁的"过早的结束",因为服务器上设定好了自己的User Access Control (UAC), 这个时候有的朋友也许会说,那好办,直接关掉! 但是在这里我强烈建议大家不要去做这样的操作,因为这样的策略很多时候是GPO组策略下发的,或者是本身服务器出于安

springboot 连接 mysql 时报错 using password: NO

最近使用 springboot 配置 mysql 时出现了一个错误Access denied for user ''@'localhost' (using password: YES) 或者Access denied for user ''@'localhost' (using password: NO) 经发现这是 springboot 中 yml 语法的的一个坑,在我现在用的最新版本2.2.4 的springBoot中所推荐 yml 的格式是 data-username: root data

maven项目或者SpringBoot项目启动时报错在本地仓库中找不到jar包的解决办法

经常遇到项目检出来后是导入开发工具eclipse中pom文件出错问题,项目启动时遇到了一些列的jar包找不到的问题,所以换个开发平台到IDEA以为会好些,结果同样的问题还是会出现的,为了找到具体的解决办法,针对以下我遇到的此类问题做总结,希望能帮助到一部分人,所以帮我此次的解决办法记录下来,帮助大家也方面自己. 一.问题现象 二.解决办法 (1)从报错截图中大概知道是因为在本地的maven仓库中找不到“mchange-commons-java-0.2.9.jar ”这个jar包 所以就到本地的m

Reporting Service 服务启动时报错The service did not respond to the start or control request in a timely fashion

案例环境: 启动一台数据库服务器(Windows Server 2003)的Reporting Service(SQL Server 2008 R2)服务时,出现如下错误信息: System.InvalidOperationException: Cannot start service ReportServer on computer 'xxx'. ---> System.ComponentModel.Win32Exception: The service did not respond to

【翻译自mos文章】从远程机器连接到windows上的db时报错ora-12170

从远程机器连接到windows上的db时报错ora-12170 参考原文: Windows: ORA-12170 Attempting to Connect from Remote Client (Doc ID 748461.1) 适用于: Oracle Net Services - Version 9.2.0.1 to 11.2.0.3 [Release 9.2 to 11.2] z*OBSOLETE: Microsoft Windows Generic Windows Microsoft W

springBoot使用feign实现远程接口调用和错误熔断

1.第一步,新建两个简单的springboot项目并创建rest接口 demo系统的rest接口 plus系统的调用接口 2.在项目pom文件里导入feign和hystrix的pom依赖包 <properties> <java.version>1.8</java.version> <spring-cloud.version>Greenwich.SR1</spring-cloud.version> </properties> <!

Linux 启动 Apache 时报错:(98)Address already in use: make_sock: could not bind to address [::]:80

1. 启动 Apache 时报错: [[email protected] sh]# service httpd start Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName (98)Address already in use: make_sock: could not bi

Entity中Lazy Load的属性序列化JSON时报错

The server encountered an internal error that prevented it from fulfilling this request.org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: failed to lazily initialize a collection of role: com.party.dinner.entit