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

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

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

在@FeignClient注解上去掉“/”

原文地址:https://www.cnblogs.com/Fzeng/p/14550288.html