解决方法 在eureka微服务配置文件application.yml添加配置: eureka: client: #是否将自己注册到eureka服务上 默认为true register-with-eureka: true #是否拉取服务信息 默认为true fetch-registry: false