Springcloud报错:java.lang.IllegalStateException: Service id not legal hostname (/a-service)

整合网上的其他原因,大致有两个

application.yml 文件中spring.application.name=a-service,不要使用下划线,用“-”

在@FeignClient注解上去掉“/”

posted @ 2021-03-17 16:44  fengzeng  阅读(1021)  评论(0编辑  收藏  举报