eureka-client无法启动com.netflix.discovery.DiscoveryClient : Shutting down DiscoveryClient
解決方法:
?? ?在pom.xml中加入或者父pom.xml中加入
?? ?<dependency> ?
?? ? ???<groupId>org.springframework.boot</groupId> ?
?? ? ???<artifactId>spring-boot-starter-web</artifactId> ?
?? ?</dependency> ?
?? ?即可
報錯信息:
? . ? ____ ? ? ? ? ?_ ? ? ? ? ? ?__ _ _
?/\\ / ___'_ __ _ _(_)_ __ ?__ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
?\\/ ?___)| |_)| | | | | || (_| | ?) ) ) )
? ' ?|____| .__|_| |_|_| |_\__, | / / / /
?=========|_|==============|___/=/_/_/_/
?:: Spring Boot :: ? ? ? ?(v2.1.6.RELEASE)
2019-07-03 14:17:49.002 ?INFO 67531 --- [ ? ? ? ? ? main] c.z.e.EurekaClientApplication ? ? ? ? ? ?: No active profile set, falling back to default profiles: default
2019-07-03 14:17:49.438 ?INFO 67531 --- [ ? ? ? ? ? main] o.s.cloud.context.scope.GenericScope ? ? : BeanFactory id=7ee7d973-fec7-384c-baa1-c7a4b4852bc5
2019-07-03 14:17:49.475 ?INFO 67531 --- [ ? ? ? ? ? main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$131bb016] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-07-03 14:17:49.487 ?WARN 67531 --- [ ? ? ? ? ? main] c.n.c.sources.URLConfigurationSource ? ? : No URLs will be polled as dynamic configuration sources.
2019-07-03 14:17:49.487 ?INFO 67531 --- [ ? ? ? ? ? main] c.n.c.sources.URLConfigurationSource ? ? : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2019-07-03 14:17:49.490 ?WARN 67531 --- [ ? ? ? ? ? main] c.n.c.sources.URLConfigurationSource ? ? : No URLs will be polled as dynamic configuration sources.
2019-07-03 14:17:49.490 ?INFO 67531 --- [ ? ? ? ? ? main] c.n.c.sources.URLConfigurationSource ? ? : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2019-07-03 14:17:49.870 ?INFO 67531 --- [ ? ? ? ? ? main] o.s.c.n.eureka.InstanceInfoFactory ? ? ? : Setting initial instance status as: STARTING
2019-07-03 14:17:49.900 ?INFO 67531 --- [ ? ? ? ? ? main] com.netflix.discovery.DiscoveryClient ? ?: Initializing Eureka in region us-east-1
2019-07-03 14:17:50.164 ?INFO 67531 --- [ ? ? ? ? ? main] c.n.d.provider.DiscoveryJerseyProvider ? : Using JSON encoding codec LegacyJacksonJson
2019-07-03 14:17:50.164 ?INFO 67531 --- [ ? ? ? ? ? main] c.n.d.provider.DiscoveryJerseyProvider ? : Using JSON decoding codec LegacyJacksonJson
2019-07-03 14:17:50.251 ?INFO 67531 --- [ ? ? ? ? ? main] c.n.d.provider.DiscoveryJerseyProvider ? : Using XML encoding codec XStreamXml
2019-07-03 14:17:50.252 ?INFO 67531 --- [ ? ? ? ? ? main] c.n.d.provider.DiscoveryJerseyProvider ? : Using XML decoding codec XStreamXml
2019-07-03 14:17:50.399 ?INFO 67531 --- [ ? ? ? ? ? main] c.n.d.s.r.aws.ConfigClusterResolver ? ? ?: Resolving eureka endpoints via configuration
2019-07-03 14:17:50.415 ?INFO 67531 --- [ ? ? ? ? ? main] com.netflix.discovery.DiscoveryClient ? ?: Disable delta property : false
2019-07-03 14:17:50.415 ?INFO 67531 --- [ ? ? ? ? ? main] com.netflix.discovery.DiscoveryClient ? ?: Single vip registry refresh property : null
2019-07-03 14:17:50.415 ?INFO 67531 --- [ ? ? ? ? ? main] com.netflix.discovery.DiscoveryClient ? ?: Force full registry fetch : false
2019-07-03 14:17:50.415 ?INFO 67531 --- [ ? ? ? ? ? main] com.netflix.discovery.DiscoveryClient ? ?: Application is null : false
2019-07-03 14:17:50.415 ?INFO 67531 --- [ ? ? ? ? ? main] com.netflix.discovery.DiscoveryClient ? ?: Registered Applications size is zero : true
2019-07-03 14:17:50.415 ?INFO 67531 --- [ ? ? ? ? ? main] com.netflix.discovery.DiscoveryClient ? ?: Application version is -1: true
2019-07-03 14:17:50.415 ?INFO 67531 --- [ ? ? ? ? ? main] com.netflix.discovery.DiscoveryClient ? ?: Getting all instance registry info from the eureka server
2019-07-03 14:17:50.557 ?INFO 67531 --- [ ? ? ? ? ? main] com.netflix.discovery.DiscoveryClient ? ?: The response status is 200
2019-07-03 14:17:50.560 ?INFO 67531 --- [ ? ? ? ? ? main] com.netflix.discovery.DiscoveryClient ? ?: Starting heartbeat executor: renew interval is: 30
2019-07-03 14:17:50.563 ?INFO 67531 --- [ ? ? ? ? ? main] c.n.discovery.InstanceInfoReplicator ? ? : InstanceInfoReplicator onDemand update allowed rate per min is 4
2019-07-03 14:17:50.566 ?INFO 67531 --- [ ? ? ? ? ? main] com.netflix.discovery.DiscoveryClient ? ?: Discovery Client initialized at timestamp 1562134670565 with initial instances count: 1
2019-07-03 14:17:50.568 ?INFO 67531 --- [ ? ? ? ? ? main] o.s.c.n.e.s.EurekaServiceRegistry ? ? ? ?: Registering application EUREKA-CLIENT with eureka with status UP
2019-07-03 14:17:50.568 ?INFO 67531 --- [ ? ? ? ? ? main] com.netflix.discovery.DiscoveryClient ? ?: Saw local status change event StatusChangeEvent [timestamp=1562134670568, current=UP, previous=STARTING]
2019-07-03 14:17:50.569 ?INFO 67531 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient ? ?: DiscoveryClient_EUREKA-CLIENT/192.168.137.233:eureka-client:8869: registering service...
2019-07-03 14:17:50.580 ?INFO 67531 --- [ ? ? ? ? ? main] c.z.e.EurekaClientApplication ? ? ? ? ? ?: Started EurekaClientApplication in 2.635 seconds (JVM running for 3.216)
2019-07-03 14:17:50.583 ?INFO 67531 --- [ ? ? ? Thread-9] o.s.c.n.e.s.EurekaServiceRegistry ? ? ? ?: Unregistering application EUREKA-CLIENT with eureka with status DOWN
2019-07-03 14:17:50.583 ?WARN 67531 --- [ ? ? ? Thread-9] com.netflix.discovery.DiscoveryClient ? ?: Saw local status change event StatusChangeEvent [timestamp=1562134670583, current=DOWN, previous=UP]
2019-07-03 14:17:50.586 ?INFO 67531 --- [ ? ? ? Thread-9] com.netflix.discovery.DiscoveryClient ? ?: Shutting down DiscoveryClient ...
2019-07-03 14:17:50.597 ?INFO 67531 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient ? ?: DiscoveryClient_EUREKA-CLIENT/192.168.137.233:eureka-client:8869 - registration status: 204
2019-07-03 14:17:50.597 ?INFO 67531 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient ? ?: DiscoveryClient_EUREKA-CLIENT/192.168.137.233:eureka-client:8869: registering service...
2019-07-03 14:17:50.604 ?INFO 67531 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient ? ?: DiscoveryClient_EUREKA-CLIENT/192.168.137.233:eureka-client:8869 - registration status: 204
2019-07-03 14:17:50.605 ?INFO 67531 --- [ ? ? ? Thread-9] com.netflix.discovery.DiscoveryClient ? ?: Unregistering ...
2019-07-03 14:17:50.611 ?INFO 67531 --- [ ? ? ? Thread-9] com.netflix.discovery.DiscoveryClient ? ?: DiscoveryClient_EUREKA-CLIENT/192.168.137.233:eureka-client:8869 - deregister ?status: 200
2019-07-03 14:17:50.627 ?INFO 67531 --- [ ? ? ? Thread-9] com.netflix.discovery.DiscoveryClient ? ?: Completed shut down of DiscoveryClient
進程已結束,退出代碼 0
解決思路:
看到"Unregistering application unknown with eureka with status DOWN",eureka無法注冊未知應用程序,導致停止。感覺應該是缺少容器,spring-boot-starter-web中含有tomcat。
總結
以上是生活随笔為你收集整理的eureka-client无法启动com.netflix.discovery.DiscoveryClient : Shutting down DiscoveryClient的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python爬取豆瓣图书前250
- 下一篇: linux历史数据导出命令,Linux