java.lang.IllegalStateException: Service id not legal hostname
程序员文章站
2022-07-15 12:54:12
...
springcloud注册服务后两个服务互相调用抛出错误:java.lang.IllegalStateException: Service id not legal hostname ******
主要原因是注册的服务名字中不能有下划线比如 abc_fssa
改为abc-fssa即可解决
application.yml
spring:
application:
name: abc_fssa
改为
spring:
application:
name: abc-fssa
上一篇: Assert(断言) 替换 throw exception
下一篇: java Exception
推荐阅读
-
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)