SpringCloudEurekaCleint启动就关闭

    SpringCloud Eureka 客户端一启动就关闭,检查服务器端已经启动,并且访问http://localhost:8671/
客户端控制台启动日志如下:

创新互联-专业网站定制、快速模板网站建设、高性价比米易网站开发、企业建站全套包干低至880元,成熟完善的模板库,直接使用。一站式米易网站制作公司更省心,省钱,快速模板网站建设找我们,业务覆盖米易地区。费用合理售后完善,10余年实体公司更值得信赖。

"D:\Program Files\Java\jdk1.8.0_191\bin\java.exe" -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=50012 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=localhost -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-javaagent:D:\Program Files\JetBrains\IntelliJ IDEA 2018.3\lib\idea_rt.jar=50013:D:\Program Files\JetBrains\IntelliJ IDEA 2018.3\bin" -Dfile.encoding=UTF-8 -classpath "D:\Program Files\Java\jdk1.8.0_191\jre\lib\charsets.jar;D:\Program Files\Java\jdk1.8.0_191\jre\lib\deploy.jar;D:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\access-bridge-64.jar;D:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\cldrdata.jar;D:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\DNSns.jar;D:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\jaccess.jar;D:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\jfxrt.jar;D:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\localedata.jar;D:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\nashorn.jar;D:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\sunec.jar;D:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\sunjce_provider.jar;D:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\sunmscapi.jar;D:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\sunpkcs11.jar;D:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\zipfs.jar;D:\Program Files\Java\jdk1.8.0_191\jre\lib\javaws.jar;D:\Program Files\Java\jdk1.8.0_191\jre\lib\jce.jar;D:\Program Files\Java\jdk1.8.0_191\jre\lib\jfr.jar;D:\Program Files\Java\jdk1.8.0_191\jre\lib\jfxswt.jar;D:\Program Files\Java\jdk1.8.0_191\jre\lib\jsse.jar;D:\Program Files\Java\jdk1.8.0_191\jre\lib\management-agent.jar;D:\Program Files\Java\jdk1.8.0_191\jre\lib\plugin.jar;D:\Program Files\Java\jdk1.8.0_191\jre\lib\resources.jar;D:\Program Files\Java\jdk1.8.0_191\jre\lib\rt.jar;D:\Dev\spring-cloud-code\ch3-1\ch3-1-eureka-client\target\classes;D:\maven_repository\org\springframework\cloud\spring-cloud-starter-netflix-eureka-client\2.0.0.RELEASE\spring-cloud-starter-netflix-eureka-client-2.0.0.RELEASE.jar;D:\maven_repository\org\springframework\cloud\spring-cloud-starter\2.0.0.RELEASE\spring-cloud-starter-2.0.0.RELEASE.jar;D:\maven_repository\org\springframework\cloud\spring-cloud-context\2.0.0.RELEASE\spring-cloud-context-2.0.0.RELEASE.jar;D:\maven_repository\org\springframework\security\spring-security-crypto\5.0.3.RELEASE\spring-security-crypto-5.0.3.RELEASE.jar;D:\maven_repository\org\springframework\cloud\spring-cloud-commons\2.0.0.RELEASE\spring-cloud-commons-2.0.0.RELEASE.jar;D:\maven_repository\org\springframework\security\spring-security-rsa\1.0.5.RELEASE\spring-security-rsa-1.0.5.RELEASE.jar;D:\maven_repository\org\bouncycastle\bcpkix-jdk15on\1.56\bcpkix-jdk15on-1.56.jar;D:\maven_repository\org\bouncycastle\bcprov-jdk15on\1.56\bcprov-jdk15on-1.56.jar;D:\maven_repository\org\springframework\cloud\spring-cloud-netflix-core\2.0.0.RELEASE\spring-cloud-netflix-core-2.0.0.RELEASE.jar;D:\maven_repository\org\springframework\boot\spring-boot-starter-aop\2.0.0.RELEASE\spring-boot-starter-aop-2.0.0.RELEASE.jar;D:\maven_repository\org\springframework\spring-aop\5.0.4.RELEASE\spring-aop-5.0.4.RELEASE.jar;D:\maven_repository\org\aspectj\aspectjweaver\1.8.13\aspectjweaver-1.8.13.jar;D:\maven_repository\org\springframework\cloud\spring-cloud-netflix-eureka-client\2.0.0.RELEASE\spring-cloud-netflix-eureka-client-2.0.0.RELEASE.jar;D:\maven_repository\com\netflix\eureka\eureka-client\1.9.2\eureka-client-1.9.2.jar;D:\maven_repository\org\codehaus\jettison\jettison\1.3.7\jettison-1.3.7.jar;D:\maven_repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar;D:\maven_repository\com\netflix\netflix-commons\netflix-eventbus\0.3.0\netflix-eventbus-0.3.0.jar;D:\maven_repository\com\netflix\netflix-commons\netflix-infix\0.3.0\netflix-infix-0.3.0.jar;D:\maven_repository\commons-jxpath\commons-jxpath\1.3\commons-jxpath-1.3.jar;D:\maven_repository\joda-time\joda-time\2.9.9\joda-time-2.9.9.jar;D:\maven_repository\org\antlr\antlr-runtime\3.4\antlr-runtime-3.4.jar;D:\maven_repository\org\antlr\stringtemplate\3.2.1\stringtemplate-3.2.1.jar;D:\maven_repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;D:\maven_repository\com\google\code\gson\gson\2.8.2\gson-2.8.2.jar;D:\maven_repository\org\apache\commons\commons-math\2.2\commons-math-2.2.jar;D:\maven_repository\com\netflix\archaius\archaius-core\0.7.6\archaius-core-0.7.6.jar;D:\maven_repository\com\google\guava\guava\16.0\guava-16.0.jar;D:\maven_repository\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;D:\maven_repository\com\netflix\servo\servo-core\0.12.21\servo-core-0.12.21.jar;D:\maven_repository\com\sun\jersey\jersey-core\1.19.1\jersey-core-1.19.1.jar;D:\maven_repository\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;D:\maven_repository\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;D:\maven_repository\org\apache\httpcomponents\httpclient\4.5.5\httpclient-4.5.5.jar;D:\maven_repository\org\apache\httpcomponents\httpcore\4.4.9\httpcore-4.4.9.jar;D:\maven_repository\commons-codec\commons-codec\1.11\commons-codec-1.11.jar;D:\maven_repository\com\google\inject\guice\4.1.0\guice-4.1.0.jar;D:\maven_repository\javax\inject\javax.inject\1\javax.inject-1.jar;D:\maven_repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;D:\maven_repository\com\github\vlsi\compactmap\compactmap\1.2.1\compactmap-1.2.1.jar;D:\maven_repository\com\github\andrewoma\dexx\dexx-collections\0.2\dexx-collections-0.2.jar;D:\maven_repository\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar;D:\maven_repository\com\fasterxml\jackson\core\jackson-core\2.9.4\jackson-core-2.9.4.jar;D:\maven_repository\com\fasterxml\jackson\core\jackson-databind\2.9.4\jackson-databind-2.9.4.jar;D:\maven_repository\com\netflix\eureka\eureka-core\1.9.2\eureka-core-1.9.2.jar;D:\maven_repository\org\codehaus\woodstox\woodstox-core-asl\4.4.1\woodstox-core-asl-4.4.1.jar;D:\maven_repository\javax\xml\stream\stax-api\1.0-2\stax-api-1.0-2.jar;D:\maven_repository\org\codehaus\woodstox\stax2-api\3.1.4\stax2-api-3.1.4.jar;D:\maven_repository\org\springframework\cloud\spring-cloud-starter-netflix-archaius\2.0.0.RELEASE\spring-cloud-starter-netflix-archaius-2.0.0.RELEASE.jar;D:\maven_repository\org\springframework\cloud\spring-cloud-netflix-ribbon\2.0.0.RELEASE\spring-cloud-netflix-ribbon-2.0.0.RELEASE.jar;D:\maven_repository\org\springframework\cloud\spring-cloud-netflix-archaius\2.0.0.RELEASE\spring-cloud-netflix-archaius-2.0.0.RELEASE.jar;D:\maven_repository\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;D:\maven_repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;D:\maven_repository\org\springframework\cloud\spring-cloud-starter-netflix-ribbon\2.0.0.RELEASE\spring-cloud-starter-netflix-ribbon-2.0.0.RELEASE.jar;D:\maven_repository\com\netflix\ribbon\ribbon\2.2.5\ribbon-2.2.5.jar;D:\maven_repository\com\netflix\ribbon\ribbon-transport\2.2.5\ribbon-transport-2.2.5.jar;D:\maven_repository\io\reactivex\rxnetty-contexts\0.4.9\rxnetty-contexts-0.4.9.jar;D:\maven_repository\io\reactivex\rxnetty-servo\0.4.9\rxnetty-servo-0.4.9.jar;D:\maven_repository\com\netflix\hystrix\hystrix-core\1.5.12\hystrix-core-1.5.12.jar;D:\maven_repository\org\hdrhistogram\HdrHistogram\2.1.9\HdrHistogram-2.1.9.jar;D:\maven_repository\io\reactivex\rxnetty\0.4.9\rxnetty-0.4.9.jar;D:\maven_repository\io\netty\netty-codec-http\4.1.22.Final\netty-codec-http-4.1.22.Final.jar;D:\maven_repository\io\netty\netty-codec\4.1.22.Final\netty-codec-4.1.22.Final.jar;D:\maven_repository\io\netty\netty-transport-native-epoll\4.1.22.Final\netty-transport-native-epoll-4.1.22.Final.jar;D:\maven_repository\io\netty\netty-common\4.1.22.Final\netty-common-4.1.22.Final.jar;D:\maven_repository\io\netty\netty-buffer\4.1.22.Final\netty-buffer-4.1.22.Final.jar;D:\maven_repository\io\netty\netty-transport-native-unix-common\4.1.22.Final\netty-transport-native-unix-common-4.1.22.Final.jar;D:\maven_repository\io\netty\netty-transport\4.1.22.Final\netty-transport-4.1.22.Final.jar;D:\maven_repository\io\netty\netty-resolver\4.1.22.Final\netty-resolver-4.1.22.Final.jar;D:\maven_repository\com\netflix\ribbon\ribbon-core\2.2.5\ribbon-core-2.2.5.jar;D:\maven_repository\com\netflix\ribbon\ribbon-httpclient\2.2.5\ribbon-httpclient-2.2.5.jar;D:\maven_repository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;D:\maven_repository\com\netflix\netflix-commons\netflix-commons-util\0.3.0\netflix-commons-util-0.3.0.jar;D:\maven_repository\com\netflix\ribbon\ribbon-loadbalancer\2.2.5\ribbon-loadbalancer-2.2.5.jar;D:\maven_repository\com\netflix\netflix-commons\netflix-statistics\0.1.1\netflix-statistics-0.1.1.jar;D:\maven_repository\io\reactivex\rxjava\1.3.6\rxjava-1.3.6.jar;D:\maven_repository\com\netflix\ribbon\ribbon-eureka\2.2.5\ribbon-eureka-2.2.5.jar;D:\maven_repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;D:\maven_repository\com\thoughtworks\xstream\xstream\1.4.10\xstream-1.4.10.jar;D:\maven_repository\xmlpull\xmlpull\1.1.3.1\xmlpull-1.1.3.1.jar;D:\maven_repository\xpp3\xpp3_min\1.1.4c\xpp3_min-1.1.4c.jar;D:\maven_repository\org\springframework\boot\spring-boot-starter\2.0.0.RELEASE\spring-boot-starter-2.0.0.RELEASE.jar;D:\maven_repository\org\springframework\boot\spring-boot\2.0.0.RELEASE\spring-boot-2.0.0.RELEASE.jar;D:\maven_repository\org\springframework\spring-context\5.0.4.RELEASE\spring-context-5.0.4.RELEASE.jar;D:\maven_repository\org\springframework\spring-beans\5.0.4.RELEASE\spring-beans-5.0.4.RELEASE.jar;D:\maven_repository\org\springframework\spring-expression\5.0.4.RELEASE\spring-expression-5.0.4.RELEASE.jar;D:\maven_repository\org\springframework\boot\spring-boot-autoconfigure\2.0.0.RELEASE\spring-boot-autoconfigure-2.0.0.RELEASE.jar;D:\maven_repository\org\springframework\boot\spring-boot-starter-logging\2.0.0.RELEASE\spring-boot-starter-logging-2.0.0.RELEASE.jar;D:\maven_repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;D:\maven_repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;D:\maven_repository\org\apache\logging\log4j\log4j-to-slf4j\2.10.0\log4j-to-slf4j-2.10.0.jar;D:\maven_repository\org\apache\logging\log4j\log4j-api\2.10.0\log4j-api-2.10.0.jar;D:\maven_repository\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;D:\maven_repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;D:\maven_repository\org\springframework\spring-core\5.0.4.RELEASE\spring-core-5.0.4.RELEASE.jar;D:\maven_repository\org\springframework\spring-jcl\5.0.4.RELEASE\spring-jcl-5.0.4.RELEASE.jar;D:\maven_repository\org\yaml\snakeyaml\1.19\snakeyaml-1.19.jar" com.springcloud.book.Ch31EurekaClientApplication
2019-03-04 09:33:52.565  INFO 15252 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@55b7a4e0: startup date [Mon Mar 04 09:33:52 GMT+08:00 2019]; root of context hierarchy
2019-03-04 09:33:52.693  INFO 15252 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2019-03-04 09:33:52.714  INFO 15252 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$1b7bd026] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.0.0.RELEASE)

2019-03-04 09:33:53.148  INFO 15252 --- [           main] c.s.book.Ch31EurekaClientApplication     : The following profiles are active: demo
2019-03-04 09:33:53.156  INFO 15252 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@1115ec15: startup date [Mon Mar 04 09:33:53 GMT+08:00 2019]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@55b7a4e0
2019-03-04 09:33:53.343  INFO 15252 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=511cd1a9-adea-3afe-be2c-77116b7bbf91
2019-03-04 09:33:53.349  INFO 15252 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2019-03-04 09:33:53.386  INFO 15252 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$1b7bd026] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-03-04 09:33:53.453  WARN 15252 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2019-03-04 09:33:53.453  INFO 15252 --- [           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-03-04 09:33:53.456  WARN 15252 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2019-03-04 09:33:53.456  INFO 15252 --- [           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-03-04 09:33:54.260  INFO 15252 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
2019-03-04 09:33:54.264  INFO 15252 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'refreshScope' has been autodetected for JMX exposure
2019-03-04 09:33:54.265  INFO 15252 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'configurationPropertiesRebinder' has been autodetected for JMX exposure
2019-03-04 09:33:54.265  INFO 15252 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'environmentManager' has been autodetected for JMX exposure
2019-03-04 09:33:54.266  INFO 15252 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'environmentManager': registering with JMX server as MBean [org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager]
2019-03-04 09:33:54.274  INFO 15252 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'refreshScope': registering with JMX server as MBean [org.springframework.cloud.context.scope.refresh:name=refreshScope,type=RefreshScope]
2019-03-04 09:33:54.279  INFO 15252 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'configurationPropertiesRebinder': registering with JMX server as MBean [org.springframework.cloud.context.properties:name=configurationPropertiesRebinder,context=1115ec15,type=ConfigurationPropertiesRebinder]
2019-03-04 09:33:54.284  INFO 15252 --- [           main] o.s.c.support.DefaultLifecycleProcessor  : Starting beans in phase 0
2019-03-04 09:33:54.289  INFO 15252 --- [           main] o.s.c.n.eureka.InstanceInfoFactory       : Setting initial instance status as: STARTING
2019-03-04 09:33:54.313  INFO 15252 --- [           main] com.netflix.discovery.DiscoveryClient    : Initializing Eureka in region us-east-1
2019-03-04 09:33:54.684  INFO 15252 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON encoding codec LegacyJacksonJson
2019-03-04 09:33:54.684  INFO 15252 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON decoding codec LegacyJacksonJson
2019-03-04 09:33:54.755  INFO 15252 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using XML encoding codec XStreamXml
2019-03-04 09:33:54.755  INFO 15252 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using XML decoding codec XStreamXml
2019-03-04 09:33:54.866  INFO 15252 --- [           main] c.n.d.s.r.aws.ConfigClusterResolver      : Resolving eureka endpoints via configuration
2019-03-04 09:33:55.075  INFO 15252 --- [           main] com.netflix.discovery.DiscoveryClient    : Disable delta property : false
2019-03-04 09:33:55.075  INFO 15252 --- [           main] com.netflix.discovery.DiscoveryClient    : Single vip registry refresh property : null
2019-03-04 09:33:55.075  INFO 15252 --- [           main] com.netflix.discovery.DiscoveryClient    : Force full registry fetch : false
2019-03-04 09:33:55.075  INFO 15252 --- [           main] com.netflix.discovery.DiscoveryClient    : Application is null : false
2019-03-04 09:33:55.075  INFO 15252 --- [           main] com.netflix.discovery.DiscoveryClient    : Registered Applications size is zero : true
2019-03-04 09:33:55.075  INFO 15252 --- [           main] com.netflix.discovery.DiscoveryClient    : Application version is -1: true
2019-03-04 09:33:55.075  INFO 15252 --- [           main] com.netflix.discovery.DiscoveryClient    : Getting all instance registry info from the eureka server
2019-03-04 09:33:55.143  INFO 15252 --- [           main] com.netflix.discovery.DiscoveryClient    : The response status is 200
2019-03-04 09:33:55.144  INFO 15252 --- [           main] com.netflix.discovery.DiscoveryClient    : Starting heartbeat executor: renew interval is: 30
2019-03-04 09:33:55.145  INFO 15252 --- [           main] c.n.discovery.InstanceInfoReplicator     : InstanceInfoReplicator onDemand update allowed rate per min is 4
2019-03-04 09:33:55.148  INFO 15252 --- [           main] com.netflix.discovery.DiscoveryClient    : Discovery Client initialized at timestamp 1551663235147 with initial instances count: 0
2019-03-04 09:33:55.150  INFO 15252 --- [           main] o.s.c.n.e.s.EurekaServiceRegistry        : Registering application demo-client1 with eureka with status UP
2019-03-04 09:33:55.151  INFO 15252 --- [           main] com.netflix.discovery.DiscoveryClient    : Saw local status change event StatusChangeEvent [timestamp=1551663235151, current=UP, previous=STARTING]
2019-03-04 09:33:55.151  INFO 15252 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_DEMO-CLIENT1/LAPTOP-KPHD2DV0:demo-client1:8081: registering service...
2019-03-04 09:33:55.157  INFO 15252 --- [           main] c.s.book.Ch31EurekaClientApplication     : Started Ch31EurekaClientApplication in 3.223 seconds (JVM running for 3.946)
2019-03-04 09:33:55.159  INFO 15252 --- [      Thread-11] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@1115ec15: startup date [Mon Mar 04 09:33:53 GMT+08:00 2019]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@55b7a4e0
2019-03-04 09:33:55.159  INFO 15252 --- [      Thread-11] o.s.c.n.e.s.EurekaServiceRegistry        : Unregistering application demo-client1 with eureka with status DOWN
2019-03-04 09:33:55.159  WARN 15252 --- [      Thread-11] com.netflix.discovery.DiscoveryClient    : Saw local status change event StatusChangeEvent [timestamp=1551663235159, current=DOWN, previous=UP]
2019-03-04 09:33:55.160  INFO 15252 --- [      Thread-11] o.s.c.support.DefaultLifecycleProcessor  : Stopping beans in phase 0
2019-03-04 09:33:55.160  INFO 15252 --- [      Thread-11] com.netflix.discovery.DiscoveryClient    : Shutting down DiscoveryClient ...
2019-03-04 09:33:55.201  INFO 15252 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_DEMO-CLIENT1/LAPTOP-KPHD2DV0:demo-client1:8081 - registration status: 204
2019-03-04 09:33:55.201  INFO 15252 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_DEMO-CLIENT1/LAPTOP-KPHD2DV0:demo-client1:8081: registering service...
2019-03-04 09:33:55.216  INFO 15252 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_DEMO-CLIENT1/LAPTOP-KPHD2DV0:demo-client1:8081 - registration status: 204
2019-03-04 09:33:55.217  INFO 15252 --- [      Thread-11] com.netflix.discovery.DiscoveryClient    : Unregistering ...
2019-03-04 09:33:55.232  INFO 15252 --- [      Thread-11] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_DEMO-CLIENT1/LAPTOP-KPHD2DV0:demo-client1:8081 - deregister  status: 200
2019-03-04 09:33:55.238  INFO 15252 --- [      Thread-11] com.netflix.discovery.DiscoveryClient    : Completed shut down of DiscoveryClient
2019-03-04 09:33:55.239  INFO 15252 --- [      Thread-11] o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans on shutdown
2019-03-04 09:33:55.239  INFO 15252 --- [      Thread-11] o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans

Process finished with exit code 0

    一看日志,莫名其妙的,明明提示已经注册到服务中心,但是后面又被强制下线了。这种情况下,是因为没有加入依赖:

        
            org.springframework.boot
            spring-boot-starter-web
        

分享名称:SpringCloudEurekaCleint启动就关闭
URL地址:http://bzwzjz.com/article/jsdiic.html

其他资讯

Copyright © 2007-2020 广东宝晨空调科技有限公司 All Rights Reserved 粤ICP备2022107769号
友情链接: 成都网站设计公司 成都网站建设公司 手机网站建设 攀枝花网站设计 网站制作 成都定制网站建设 网站制作 成都网站设计 移动网站建设 成都网站制作 定制网站建设多少钱 专业网站设计 盐亭网站设计 自适应网站设计 达州网站设计 成都企业网站建设公司 企业网站设计 成都网站建设推广 重庆外贸网站建设 成都网站建设 定制网站建设 重庆网站设计