java.lang.IllegalStateException: Service id not legal hostname
程序员文章站
2022-07-15 12:59:00
...
转载https://blog.csdn.net/luwei42768/article/details/79529281
java.lang.IllegalStateException: Service id not legal hostname
2018年03月12日 16:45:38 卢磊的技术人生 阅读数:2055
版权声明:本文为 卢磊的技术人生 原创文章,未经博主允许不得转载。 https://blog.csdn.net/luwei42768/article/details/79529281
公司项目,两个微服务调用时,抛出:
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)