{"id":883,"date":"2023-03-09T22:24:56","date_gmt":"2023-03-09T14:24:56","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=883"},"modified":"2023-04-29T16:40:42","modified_gmt":"2023-04-29T08:40:42","slug":"spring-cloud-close-unregistering-application-xxx-with-eureka-with-status-downn-after-starting-eureka-client","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/09\/spring-cloud-close-unregistering-application-xxx-with-eureka-with-status-downn-after-starting-eureka-client\/","title":{"rendered":"Spring Cloud\u4e2dEureka Client\u542f\u52a8\u540e\u5c31\u5173\u95ed Unregistering application xxx with eureka with status DOWN"},"content":{"rendered":"<p>Spring Boot\u7248\u672c\uff1a2.1.3.RELEASE<br \/>\nSpring Cloud\u7248\u672c\uff1aGreenwich.SR1<\/p>\n<p>\u65e5\u5fd7\uff1a<\/p>\n<p><!-- more --><\/p>\n<pre><code>Discovery Client initialized at timestamp 1553267512406 with initial instances count: 0\nRegistering application spring-cloud-producer with eureka with status UP\nSaw local status change event StatusChangeEvent [timestamp=1553267512410, current=UP, previous=STARTING]\nDiscoveryClient_SPRING-CLOUD-PRODUCER\/LT-YEZHOU.lianlianpay.com:spring-cloud-producer:9000: registering service...\nStarted SpringCloudProducerApplication in 5.759 seconds (JVM running for 7.087)\nUnregistering application spring-cloud-producer with eureka with status DOWN\nSaw local status change event StatusChangeEvent [timestamp=1553267512430, current=DOWN, previous=UP]\nShutting down DiscoveryClient ...\nDiscoveryClient_SPRING-CLOUD-PRODUCER\/LT-YEZHOU.lianlianpay.com:spring-cloud-producer:9000 - registration status: 204\nDiscoveryClient_SPRING-CLOUD-PRODUCER\/LT-YEZHOU.lianlianpay.com:spring-cloud-producer:9000: registering service...\nDiscoveryClient_SPRING-CLOUD-PRODUCER\/LT-YEZHOU.lianlianpay.com:spring-cloud-producer:9000 - registration status: 204\nUnregistering ...\nDiscoveryClient_SPRING-CLOUD-PRODUCER\/LT-YEZHOU.lianlianpay.com:spring-cloud-producer:9000 - deregister  status: 200\nCompleted shut down of DiscoveryClient\n\nProcess finished with exit code 0<\/code><\/pre>\n<p>\u5728eureka-client\u4e2d\u52a0\u5165web\u4f9d\u8d56\u540e\u89e3\u51b3<\/p>\n<pre><code class=\"language-xml\">&lt;dependency&gt;\n    &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;\n    &lt;artifactId&gt;spring-boot-starter-web&lt;\/artifactId&gt;\n&lt;\/dependency&gt;<\/code><\/pre>\n<p>\u4e0d\u7528web\u5305\u53ea\u662f\u4e00\u4e2aJava\u7a0b\u5e8f\uff0c\u6240\u4ee5\u8fd0\u884c\u540e\u5c31\u505c\u6b62\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Spring Boot\u7248\u672c\uff1a2.1.3.RELEASE Spring Cloud\u7248\u672c\uff1aGreenwich.SR [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42],"tags":[],"class_list":["post-883","post","type-post","status-publish","format-standard","hentry","category-spring-cloud"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=883"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/883\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}