java.lang.IllegalStateException: Service id not legal hostname
程序员文章站
2022-07-15 12:59:06
...
公司项目,两个微服务调用时,抛出:
java.lang.IllegalStateException: Service id not legal hostname (user_manager)
查看后发现问题在在application.yml文件中的
spring:
application:
name: user_manager
不能使用下划线,name修改成user-manager启动后解决
推荐阅读
-
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)