APPLICATION FAILED TO START
应用程序启动失败
解决办法:添加 resources 里的配置
management.endpoints.web.exposure.include=*
spring.cloud.config.name=my-config-client
spring.cloud.config.profile=all
#面向服务,允许被发现
spring.cloud.config.discovery.enabled=true
spring.cloud.config.discovery.service-id=configserver
#注册中心
eureka.client.service-url.defaultZone=http://20.200.5.60:9003/eureka/
再次启动就成功了
Tomcat started on port(s): 666666 (http) with context path ‘/data’
Updating port to 666666
Started DataApplication in 8.986 seconds (JVM running for 8.568)