java.lang.IllegalStateException: Service id not legal hostname
程序员文章站
2022-07-15 12:54:12
...
SpringCloud服务,在启动两个A服务,然后使用B服务通过feign调用A时,出现以下错误:
java.lang.IllegalStateException: Service id not legal hostname
显示非法的主机名称,意味着找不到A服务。按照网上的解决方案,查看了A服务的配置,是下划线的问题。
原来的:
server:
port: 8011
spring:
application:
name: company_server
修改为:
server:
port: 8011
spring:
application:
name: company-server
推荐阅读
-
Service id not legal hostname(aj_client)
-
java.lang.IllegalStateException: Service id not legal hostname
-
java.lang.IllegalStateException: Service id not legal hostname
-
java.lang.IllegalStateException: Service id not legal hostname
-
springboot启动feign项目报错:Service id not legal hostname (LCN_TEACHER)
-
java.lang.IllegalStateException: Service id not legal hostname
-
java.lang.IllegalStateException: Service id not legal hostname
-
Service id not legal hostname (WEATHER_CITY_SERVER)
-
java.lang.IllegalStateException: Service id not legal hostname
-
spring cloud boot 启动报错java.lang.IllegalStateException: Service id not legal hostname (/user-service)