微服务启动报错 Service id not legal hostname 直接把target干掉,然后maven选择install,重新启动就好了 查看application.yml文件中的名字并没有下划线