spring cloud中Eureka Client 启动中就自动关闭

 1 E:\softwareprogram\Java\jdk1.8.0_201\bin\java.exe -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:54241,suspend=y,server=n -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -javaagent:E:\softwareprogram\IntelliJIDEA2019.1.3\lib\rt\debugger-agent.jar -Dfile.encoding=UTF-8 -classpath E:\softwareprogram\Java\jdk1.8.0_201\jre\lib\charsets.jar;E:\softwareprogram\Java\jdk1.8.0_201\jre\lib\deploy.jar;E:\softwareprogram\Java\jdk1.8.0_201\jre\lib\ext\access-bridge-64.jar;E:\softwareprogram\Java\jdk1.8.0_201\jre\lib\ext\cldrdata.jar;E:\softwareprogram\Java\jdk1.8.0_201\jre\lib\ext\dnsns.jar;E:\softwareprogram\Java\jdk1.8.0_201\jre\lib\ext\jaccess.jar;E:\softwareprogram\Java\jdk1.8.0_201\jre\lib\ext\jfxrt.jar;E:\softwareprogram\Java\jdk1.8.0_201\jre\lib\ext\localedata.jar;E:\softwareprogram\Java\jdk1.8.0_201\jre\lib\ext\nashorn.jar;E:\softwareprogram\Java\jdk1.8.0_201\jre\lib\ext\sunec.jar;E:\softwareprogram\Java\jdk1.8.0_201\jre\lib\ext\sunjce_provider.jar;E:\softwareprogram\Java\jdk1.8.0_201\jre\lib\ext\sunmscapi.jar;E:\softwareprogram\Java\jdk1.8.0_201\jre\lib\ext\sunpkcs11.jar;E:\softwareprogram\Java\jdk1.8.0_201\jre\lib\ext\zipfs.jar;E:\softwareprogram\Java\jdk1.8.0_201\jre\lib\javaws.jar;E:\softwareprogram\Java\jdk1.8.0_201\jre\lib\jce.jar;E:\softwareprogram\Java\jdk1.8.0_201\jre\lib\jfr.jar;E:\softwareprogram\Java\jdk1.8.0_201\jre\lib\jfxswt.jar;E:\softwareprogram\Java\jdk1.8.0_201\jre\lib\jsse.jar;E:\softwareprogram\Java\jdk1.8.0_201\jre\lib\management-agent.jar;E:\softwareprogram\Java\jdk1.8.0_201\jre\lib\plugin.jar;E:\softwareprogram\Java\jdk1.8.0_201\jre\lib\resources.jar;E:\softwareprogram\Java\jdk1.8.0_201\jre\lib\rt.jar;E:\workspace\idea\eureka_client\target\classes;E:\workspace\mavenrepo\eureka_client\org\springframework\cloud\spring-cloud-starter-netflix-eureka-client\2.1.2.RELEASE\spring-cloud-starter-netflix-eureka-client-2.1.2.RELEASE.jar;E:\workspace\mavenrepo\eureka_client\org\springframework\cloud\spring-cloud-starter\2.1.2.RELEASE\spring-cloud-starter-2.1.2.RELEASE.jar;E:\workspace\mavenrepo\eureka_client\org\springframework\cloud\spring-cloud-context\2.1.2.RELEASE\spring-cloud-context-2.1.2.RELEASE.jar;E:\workspace\mavenrepo\eureka_client\org\springframework\security\spring-security-crypto\5.1.6.RELEASE\spring-security-crypto-5.1.6.RELEASE.jar;E:\workspace\mavenrepo\eureka_client\org\springframework\cloud\spring-cloud-commons\2.1.2.RELEASE\spring-cloud-commons-2.1.2.RELEASE.jar;E:\workspace\mavenrepo\eureka_client\org\springframework\security\spring-security-rsa\1.0.7.RELEASE\spring-security-rsa-1.0.7.RELEASE.jar;E:\workspace\mavenrepo\eureka_client\org\bouncycastle\bcpkix-jdk15on\1.60\bcpkix-jdk15on-1.60.jar;E:\workspace\mavenrepo\eureka_client\org\bouncycastle\bcprov-jdk15on\1.60\bcprov-jdk15on-1.60.jar;E:\workspace\mavenrepo\eureka_client\org\springframework\cloud\spring-cloud-netflix-hystrix\2.1.2.RELEASE\spring-cloud-netflix-hystrix-2.1.2.RELEASE.jar;E:\workspace\mavenrepo\eureka_client\org\springframework\boot\spring-boot-autoconfigure\2.1.7.RELEASE\spring-boot-autoconfigure-2.1.7.RELEASE.jar;E:\workspace\mavenrepo\eureka_client\org\springframework\boot\spring-boot-starter-aop\2.1.7.RELEASE\spring-boot-starter-aop-2.1.7.RELEASE.jar;E:\workspace\mavenrepo\eureka_client\org\springframework\spring-aop\5.1.9.RELEASE\spring-aop-5.1.9.RELEASE.jar;E:\workspace\mavenrepo\eureka_client\org\springframework\spring-beans\5.1.9.RELEASE\spring-beans-5.1.9.RELEASE.jar;E:\workspace\mavenrepo\eureka_client\org\aspectj\aspectjweaver\1.9.4\aspectjweaver-1.9.4.jar;E:\workspace\mavenrepo\eureka_client\org\springframework\cloud\spring-cloud-netflix-eureka-client\2.1.2.RELEASE\spring-cloud-netflix-eureka-client-2.1.2.RELEASE.jar;E:\workspace\mavenrepo\eureka_client\com\netflix\eureka\eureka-client\1.9.12\eureka-client-1.9.12.jar;E:\workspace\mavenrepo\eureka_client\org\codehaus\jettison\jettison\1.3.7\jettison-1.3.7.jar;E:\workspace\mavenrepo\eureka_client\stax\stax-api\1.0.1\stax-api-1.0.1.jar;E:\workspace\mavenrepo\eureka_client\com\netflix\netflix-commons\netflix-eventbus\0.3.0\netflix-eventbus-0.3.0.jar;E:\workspace\mavenrepo\eureka_client\com\netflix\netflix-commons\netflix-infix\0.3.0\netflix-infix-0.3.0.jar;E:\workspace\mavenrepo\eureka_client\commons-jxpath\commons-jxpath\1.3\commons-jxpath-1.3.jar;E:\workspace\mavenrepo\eureka_client\joda-time\joda-time\2.10.3\joda-time-2.10.3.jar;E:\workspace\mavenrepo\eureka_client\org\antlr\antlr-runtime\3.4\antlr-runtime-3.4.jar;E:\workspace\mavenrepo\eureka_client\org\antlr\stringtemplate\3.2.1\stringtemplate-3.2.1.jar;E:\workspace\mavenrepo\eureka_client\antlr\antlr\2.7.7\antlr-2.7.7.jar;E:\workspace\mavenrepo\eureka_client\com\google\code\gson\gson\2.8.5\gson-2.8.5.jar;E:\workspace\mavenrepo\eureka_client\org\apache\commons\commons-math\2.2\commons-math-2.2.jar;E:\workspace\mavenrepo\eureka_client\com\netflix\archaius\archaius-core\0.7.6\archaius-core-0.7.6.jar;E:\workspace\mavenrepo\eureka_client\com\google\guava\guava\16.0\guava-16.0.jar;E:\workspace\mavenrepo\eureka_client\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;E:\workspace\mavenrepo\eureka_client\com\netflix\servo\servo-core\0.12.21\servo-core-0.12.21.jar;E:\workspace\mavenrepo\eureka_client\com\sun\jersey\jersey-core\1.19.1\jersey-core-1.19.1.jar;E:\workspace\mavenrepo\eureka_client\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;E:\workspace\mavenrepo\eureka_client\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;E:\workspace\mavenrepo\eureka_client\org\apache\httpcomponents\httpclient\4.5.9\httpclient-4.5.9.jar;E:\workspace\mavenrepo\eureka_client\org\apache\httpcomponents\httpcore\4.4.11\httpcore-4.4.11.jar;E:\workspace\mavenrepo\eureka_client\commons-codec\commons-codec\1.11\commons-codec-1.11.jar;E:\workspace\mavenrepo\eureka_client\com\google\inject\guice\4.1.0\guice-4.1.0.jar;E:\workspace\mavenrepo\eureka_client\javax\inject\javax.inject\1\javax.inject-1.jar;E:\workspace\mavenrepo\eureka_client\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;E:\workspace\mavenrepo\eureka_client\com\github\vlsi\compactmap\compactmap\1.2.1\compactmap-1.2.1.jar;E:\workspace\mavenrepo\eureka_client\com\github\andrewoma\dexx\dexx-collections\0.2\dexx-collections-0.2.jar;E:\workspace\mavenrepo\eureka_client\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar;E:\workspace\mavenrepo\eureka_client\com\fasterxml\jackson\core\jackson-core\2.9.9\jackson-core-2.9.9.jar;E:\workspace\mavenrepo\eureka_client\com\fasterxml\jackson\core\jackson-databind\2.9.9\jackson-databind-2.9.9.jar;E:\workspace\mavenrepo\eureka_client\com\netflix\eureka\eureka-core\1.9.12\eureka-core-1.9.12.jar;E:\workspace\mavenrepo\eureka_client\com\fasterxml\woodstox\woodstox-core\5.0.3\woodstox-core-5.0.3.jar;E:\workspace\mavenrepo\eureka_client\org\codehaus\woodstox\stax2-api\3.1.4\stax2-api-3.1.4.jar;E:\workspace\mavenrepo\eureka_client\org\springframework\cloud\spring-cloud-starter-netflix-archaius\2.1.2.RELEASE\spring-cloud-starter-netflix-archaius-2.1.2.RELEASE.jar;E:\workspace\mavenrepo\eureka_client\org\springframework\cloud\spring-cloud-netflix-ribbon\2.1.2.RELEASE\spring-cloud-netflix-ribbon-2.1.2.RELEASE.jar;E:\workspace\mavenrepo\eureka_client\org\springframework\cloud\spring-cloud-netflix-archaius\2.1.2.RELEASE\spring-cloud-netflix-archaius-2.1.2.RELEASE.jar;E:\workspace\mavenrepo\eureka_client\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;E:\workspace\mavenrepo\eureka_client\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;E:\workspace\mavenrepo\eureka_client\org\springframework\cloud\spring-cloud-starter-netflix-ribbon\2.1.2.RELEASE\spring-cloud-starter-netflix-ribbon-2.1.2.RELEASE.jar;E:\workspace\mavenrepo\eureka_client\com\netflix\ribbon\ribbon\2.3.0\ribbon-2.3.0.jar;E:\workspace\mavenrepo\eureka_client\com\netflix\ribbon\ribbon-transport\2.3.0\ribbon-transport-2.3.0.jar;E:\workspace\mavenrepo\eureka_client\io\reactivex\rxnetty-contexts\0.4.9\rxnetty-contexts-0.4.9.jar;E:\workspace\mavenrepo\eureka_client\io\reactivex\rxnetty-servo\0.4.9\rxnetty-servo-0.4.9.jar;E:\workspace\mavenrepo\eureka_client\com\netflix\hystrix\hystrix-core\1.5.18\hystrix-core-1.5.18.jar;E:\workspace\mavenrepo\eureka_client\org\hdrhistogram\HdrHistogram\2.1.9\HdrHistogram-2.1.9.jar;E:\workspace\mavenrepo\eureka_client\io\reactivex\rxnetty\0.4.9\rxnetty-0.4.9.jar;E:\workspace\mavenrepo\eureka_client\com\netflix\ribbon\ribbon-core\2.3.0\ribbon-core-2.3.0.jar;E:\workspace\mavenrepo\eureka_client\com\netflix\ribbon\ribbon-httpclient\2.3.0\ribbon-httpclient-2.3.0.jar;E:\workspace\mavenrepo\eureka_client\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;E:\workspace\mavenrepo\eureka_client\com\netflix\netflix-commons\netflix-commons-util\0.3.0\netflix-commons-util-0.3.0.jar;E:\workspace\mavenrepo\eureka_client\com\netflix\ribbon\ribbon-loadbalancer\2.3.0\ribbon-loadbalancer-2.3.0.jar;E:\workspace\mavenrepo\eureka_client\com\netflix\netflix-commons\netflix-statistics\0.1.1\netflix-statistics-0.1.1.jar;E:\workspace\mavenrepo\eureka_client\io\reactivex\rxjava\1.3.8\rxjava-1.3.8.jar;E:\workspace\mavenrepo\eureka_client\com\netflix\ribbon\ribbon-eureka\2.3.0\ribbon-eureka-2.3.0.jar;E:\workspace\mavenrepo\eureka_client\org\slf4j\slf4j-api\1.7.26\slf4j-api-1.7.26.jar;E:\workspace\mavenrepo\eureka_client\com\thoughtworks\xstream\xstream\1.4.10\xstream-1.4.10.jar;E:\workspace\mavenrepo\eureka_client\xmlpull\xmlpull\1.1.3.1\xmlpull-1.1.3.1.jar;E:\workspace\mavenrepo\eureka_client\xpp3\xpp3_min\1.1.4c\xpp3_min-1.1.4c.jar;E:\workspace\mavenrepo\eureka_client\org\springframework\boot\spring-boot-starter\2.1.7.RELEASE\spring-boot-starter-2.1.7.RELEASE.jar;E:\workspace\mavenrepo\eureka_client\org\springframework\boot\spring-boot\2.1.7.RELEASE\spring-boot-2.1.7.RELEASE.jar;E:\workspace\mavenrepo\eureka_client\org\springframework\spring-context\5.1.9.RELEASE\spring-context-5.1.9.RELEASE.jar;E:\workspace\mavenrepo\eureka_client\org\springframework\spring-expression\5.1.9.RELEASE\spring-expression-5.1.9.RELEASE.jar;E:\workspace\mavenrepo\eureka_client\org\springframework\boot\spring-boot-starter-logging\2.1.7.RELEASE\spring-boot-starter-logging-2.1.7.RELEASE.jar;E:\workspace\mavenrepo\eureka_client\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;E:\workspace\mavenrepo\eureka_client\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;E:\workspace\mavenrepo\eureka_client\org\apache\logging\log4j\log4j-to-slf4j\2.11.2\log4j-to-slf4j-2.11.2.jar;E:\workspace\mavenrepo\eureka_client\org\apache\logging\log4j\log4j-api\2.11.2\log4j-api-2.11.2.jar;E:\workspace\mavenrepo\eureka_client\org\slf4j\jul-to-slf4j\1.7.26\jul-to-slf4j-1.7.26.jar;E:\workspace\mavenrepo\eureka_client\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;E:\workspace\mavenrepo\eureka_client\org\yaml\snakeyaml\1.23\snakeyaml-1.23.jar;E:\workspace\mavenrepo\eureka_client\org\springframework\spring-core\5.1.9.RELEASE\spring-core-5.1.9.RELEASE.jar;E:\workspace\mavenrepo\eureka_client\org\springframework\spring-jcl\5.1.9.RELEASE\spring-jcl-5.1.9.RELEASE.jar;E:\softwareprogram\IntelliJIDEA2019.1.3\lib\idea_rt.jar com.qingfeng.eureka_client.EurekaClientApplication
 2 Connected to the target VM, address: '127.0.0.1:54241', transport: 'socket'
 3 2019-08-11 12:54:47.433 INFO 9608 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$31657f29] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
 4 
 5 . ____ _ __ _ _
 6 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
 7 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 8 \\/ ___)| |_)| | | | | || (_| | ) ) ) )
 9 ' |____| .__|_| |_|_| |_\__, | / / / /
10 =========|_|==============|___/=/_/_/_/
11 :: Spring Boot :: (v2.1.7.RELEASE)
12 
13 2019-08-11 12:54:50.158 INFO 9608 --- [ main] c.q.e.EurekaClientApplication : No active profile set, falling back to default profiles: default
14 2019-08-11 12:54:50.713 INFO 9608 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=7ee7d973-fec7-384c-baa1-c7a4b4852bc5
15 2019-08-11 12:54:50.804 INFO 9608 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$31657f29] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
16 2019-08-11 12:54:50.825 WARN 9608 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
17 2019-08-11 12:54:50.825 INFO 9608 --- [ 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.
18 2019-08-11 12:54:50.831 WARN 9608 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
19 2019-08-11 12:54:50.831 INFO 9608 --- [ 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.
20 2019-08-11 12:54:53.552 INFO 9608 --- [ main] o.s.cloud.commons.util.InetUtils : Cannot determine local hostname
21 2019-08-11 12:54:56.157 INFO 9608 --- [ main] o.s.cloud.commons.util.InetUtils : Cannot determine local hostname
22 2019-08-11 12:54:56.460 INFO 9608 --- [ main] o.s.c.n.eureka.InstanceInfoFactory : Setting initial instance status as: STARTING
23 2019-08-11 12:54:56.552 INFO 9608 --- [ main] com.netflix.discovery.DiscoveryClient : Initializing Eureka in region us-east-1
24 2019-08-11 12:54:57.809 INFO 9608 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON encoding codec LegacyJacksonJson
25 2019-08-11 12:54:57.809 INFO 9608 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON decoding codec LegacyJacksonJson
26 2019-08-11 12:54:58.037 INFO 9608 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML encoding codec XStreamXml
27 2019-08-11 12:54:58.038 INFO 9608 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML decoding codec XStreamXml
28 2019-08-11 12:54:58.514 INFO 9608 --- [ main] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration
29 2019-08-11 12:54:59.336 INFO 9608 --- [ main] com.netflix.discovery.DiscoveryClient : Disable delta property : false
30 2019-08-11 12:54:59.336 INFO 9608 --- [ main] com.netflix.discovery.DiscoveryClient : Single vip registry refresh property : null
31 2019-08-11 12:54:59.336 INFO 9608 --- [ main] com.netflix.discovery.DiscoveryClient : Force full registry fetch : false
32 2019-08-11 12:54:59.336 INFO 9608 --- [ main] com.netflix.discovery.DiscoveryClient : Application is null : false
33 2019-08-11 12:54:59.336 INFO 9608 --- [ main] com.netflix.discovery.DiscoveryClient : Registered Applications size is zero : true
34 2019-08-11 12:54:59.336 INFO 9608 --- [ main] com.netflix.discovery.DiscoveryClient : Application version is -1: true
35 2019-08-11 12:54:59.336 INFO 9608 --- [ main] com.netflix.discovery.DiscoveryClient : Getting all instance registry info from the eureka server
36 2019-08-11 12:54:59.641 INFO 9608 --- [ main] com.netflix.discovery.DiscoveryClient : The response status is 200
37 2019-08-11 12:54:59.649 INFO 9608 --- [ main] com.netflix.discovery.DiscoveryClient : Starting heartbeat executor: renew interval is: 30
38 2019-08-11 12:54:59.655 INFO 9608 --- [ main] c.n.discovery.InstanceInfoReplicator : InstanceInfoReplicator onDemand update allowed rate per min is 4
39 2019-08-11 12:54:59.665 INFO 9608 --- [ main] com.netflix.discovery.DiscoveryClient : Discovery Client initialized at timestamp 1565499299660 with initial instances count: 1
40 2019-08-11 12:54:59.667 INFO 9608 --- [ main] o.s.c.n.e.s.EurekaServiceRegistry : Registering application EUREKA_CLIENT with eureka with status UP
41 2019-08-11 12:54:59.668 INFO 9608 --- [ main] com.netflix.discovery.DiscoveryClient : Saw local status change event StatusChangeEvent [timestamp=1565499299668, current=UP, previous=STARTING]
42 2019-08-11 12:54:59.673 INFO 9608 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_EUREKA_CLIENT/localhost:eureka_client: registering service...
43 2019-08-11 12:54:59.705 INFO 9608 --- [ main] c.q.e.EurekaClientApplication : Started EurekaClientApplication in 16.466 seconds (JVM running for 18.591)
44 2019-08-11 12:54:59.711 INFO 9608 --- [ Thread-33] o.s.c.n.e.s.EurekaServiceRegistry : Unregistering application EUREKA_CLIENT with eureka with status DOWN
45 2019-08-11 12:54:59.712 WARN 9608 --- [ Thread-33] com.netflix.discovery.DiscoveryClient : Saw local status change event StatusChangeEvent [timestamp=1565499299712, current=DOWN, previous=UP]
46 2019-08-11 12:54:59.722 INFO 9608 --- [ Thread-33] com.netflix.discovery.DiscoveryClient : Shutting down DiscoveryClient ...
47 2019-08-11 12:54:59.768 INFO 9608 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_EUREKA_CLIENT/localhost:eureka_client - registration status: 204
48 2019-08-11 12:54:59.769 INFO 9608 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_EUREKA_CLIENT/localhost:eureka_client: registering service...
49 2019-08-11 12:54:59.777 INFO 9608 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_EUREKA_CLIENT/localhost:eureka_client - registration status: 204
50 2019-08-11 12:54:59.778 INFO 9608 --- [ Thread-33] com.netflix.discovery.DiscoveryClient : Unregistering ...
51 2019-08-11 12:54:59.793 INFO 9608 --- [ Thread-33] com.netflix.discovery.DiscoveryClient : DiscoveryClient_EUREKA_CLIENT/localhost:eureka_client - deregister status: 200
52 2019-08-11 12:54:59.814 INFO 9608 --- [ Thread-33] com.netflix.discovery.DiscoveryClient : Completed shut down of DiscoveryClient
53 Disconnected from the target VM, address: '127.0.0.1:54241', transport: 'socket'
54 
55 Process finished with exit code 0

使用

Greenwich.SR2
根据查询得出需要向pom文件中添加如下依赖
<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
</dependency>

另外根据网上信息有自我保护状态,本人测试没什么感觉,权当以后有问题作为参考

当成功注入之后,进入到相应的注册页面会出现(如下图),说明服务已进入保护模式(在客户端进行注册后,由于其他问题引起,当服务注册端检测不到的时候不会将相应的注册信息删除),

图2为当我关闭了client的注册之后出现的信息

这时可以进行设置  

eureka.server.enable-self-preservation=false # 设为false,关闭自我保护 ,默认为true()

猜你喜欢

转载自www.cnblogs.com/ffzzcommsoft/p/11334778.html