Spring Cloud中Eureka Client启动后就关闭 Unregistering application xxx with eureka with status DOWN
Spring Boot版本:2.1.3.RELEASE
Spring Cloud版本:Greenwich.SR1
日志:
Discovery Client initialized at timestamp 1553267512406 with initial instances count: 0
Registering application spring-cloud-producer with eureka with status UP
Saw local status change event StatusChangeEvent [timestamp=1553267512410, current=UP, previous=STARTING]
DiscoveryClient_SPRING-CLOUD-PRODUCER/LT-YEZHOU.lianlianpay.com:spring-cloud-producer:9000: registering service...
Started SpringCloudProducerApplication in 5.759 seconds (JVM running for 7.087)
Unregistering application spring-cloud-producer with eureka with status DOWN
Saw local status change event StatusChangeEvent [timestamp=1553267512430, current=DOWN, previous=UP]
Shutting down DiscoveryClient ...
DiscoveryClient_SPRING-CLOUD-PRODUCER/LT-YEZHOU.lianlianpay.com:spring-cloud-producer:9000 - registration status: 204
DiscoveryClient_SPRING-CLOUD-PRODUCER/LT-YEZHOU.lianlianpay.com:spring-cloud-producer:9000: registering service...
DiscoveryClient_SPRING-CLOUD-PRODUCER/LT-YEZHOU.lianlianpay.com:spring-cloud-producer:9000 - registration status: 204
Unregistering ...
DiscoveryClient_SPRING-CLOUD-PRODUCER/LT-YEZHOU.lianlianpay.com:spring-cloud-producer:9000 - deregister status: 200
Completed shut down of DiscoveryClient
Process finished with exit code 0
在eureka-client中加入web依赖后解决
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
不用web包只是一个Java程序,所以运行后就停止了。
版权声明:
作者:Joe.Ye
链接:https://www.appblog.cn/index.php/2023/03/09/spring-cloud-close-unregistering-application-xxx-with-eureka-with-status-downn-after-starting-eureka-client/
来源:APP全栈技术分享
文章版权归作者所有,未经允许请勿转载。
THE END
0
二维码
打赏
海报
Spring Cloud中Eureka Client启动后就关闭 Unregistering application xxx with eureka with status DOWN
Spring Boot版本:2.1.3.RELEASE
Spring Cloud版本:Greenwich.SR1
日志:
Discovery Client initialized at timestamp 1553267512406 with initial instance……
文章目录
关闭
共有 0 条评论