您好,登錄后才能下訂單哦!
異常信息:
"E:\Program Files\Java\jdk1.8.0_171\bin\java" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:55838,suspend=y,server=n -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=55837 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -Dfile.encoding=UTF-8 -classpath "E:\Program Files\Java\jdk1.8.0_171\jre\lib\charsets.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\deploy.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\access-bridge-64.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\cldrdata.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\dnsns.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\jaccess.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\jfxrt.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\localedata.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\nashorn.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\sunec.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\sunjce_provider.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\sunmscapi.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\sunpkcs11.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\zipfs.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\javaws.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\jce.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\jfr.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\jfxswt.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\jsse.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\management-agent.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\plugin.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\resources.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\rt.jar;E:\workspace\spring-cloud-demo\eureka-client-demo\target\classes;E:\maven\repository\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:\maven\repository\org\springframework\cloud\spring-cloud-starter\2.1.2.RELEASE\spring-cloud-starter-2.1.2.RELEASE.jar;E:\maven\repository\org\springframework\cloud\spring-cloud-context\2.1.2.RELEASE\spring-cloud-context-2.1.2.RELEASE.jar;E:\maven\repository\org\springframework\security\spring-security-crypto\5.1.5.RELEASE\spring-security-crypto-5.1.5.RELEASE.jar;E:\maven\repository\org\springframework\cloud\spring-cloud-commons\2.1.2.RELEASE\spring-cloud-commons-2.1.2.RELEASE.jar;E:\maven\repository\org\springframework\security\spring-security-rsa\1.0.7.RELEASE\spring-security-rsa-1.0.7.RELEASE.jar;E:\maven\repository\org\bouncycastle\bcpkix-jdk15on\1.60\bcpkix-jdk15on-1.60.jar;E:\maven\repository\org\bouncycastle\bcprov-jdk15on\1.60\bcprov-jdk15on-1.60.jar;E:\maven\repository\org\springframework\cloud\spring-cloud-netflix-hystrix\2.1.2.RELEASE\spring-cloud-netflix-hystrix-2.1.2.RELEASE.jar;E:\maven\repository\org\springframework\boot\spring-boot-autoconfigure\2.1.6.RELEASE\spring-boot-autoconfigure-2.1.6.RELEASE.jar;E:\maven\repository\org\springframework\boot\spring-boot-starter-aop\2.1.6.RELEASE\spring-boot-starter-aop-2.1.6.RELEASE.jar;E:\maven\repository\org\springframework\spring-aop\5.1.8.RELEASE\spring-aop-5.1.8.RELEASE.jar;E:\maven\repository\org\springframework\spring-beans\5.1.8.RELEASE\spring-beans-5.1.8.RELEASE.jar;E:\maven\repository\org\aspectj\aspectjweaver\1.9.4\aspectjweaver-1.9.4.jar;E:\maven\repository\org\springframework\cloud\spring-cloud-netflix-eureka-client\2.1.2.RELEASE\spring-cloud-netflix-eureka-client-2.1.2.RELEASE.jar;E:\maven\repository\com\netflix\eureka\eureka-client\1.9.12\eureka-client-1.9.12.jar;E:\maven\repository\org\codehaus\jettison\jettison\1.3.7\jettison-1.3.7.jar;E:\maven\repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar;E:\maven\repository\com\netflix\netflix-commons\netflix-eventbus\0.3.0\netflix-eventbus-0.3.0.jar;E:\maven\repository\com\netflix\netflix-commons\netflix-infix\0.3.0\netflix-infix-0.3.0.jar;E:\maven\repository\commons-jxpath\commons-jxpath\1.3\commons-jxpath-1.3.jar;E:\maven\repository\joda-time\joda-time\2.10.2\joda-time-2.10.2.jar;E:\maven\repository\org\antlr\antlr-runtime\3.4\antlr-runtime-3.4.jar;E:\maven\repository\org\antlr\stringtemplate\3.2.1\stringtemplate-3.2.1.jar;E:\maven\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;E:\maven\repository\com\google\code\gson\gson\2.8.5\gson-2.8.5.jar;E:\maven\repository\org\apache\commons\commons-math\2.2\commons-math-2.2.jar;E:\maven\repository\com\netflix\archaius\archaius-core\0.7.6\archaius-core-0.7.6.jar;E:\maven\repository\com\google\guava\guava\16.0\guava-16.0.jar;E:\maven\repository\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;E:\maven\repository\com\netflix\servo\servo-core\0.12.21\servo-core-0.12.21.jar;E:\maven\repository\com\sun\jersey\jersey-core\1.19.1\jersey-core-1.19.1.jar;E:\maven\repository\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;E:\maven\repository\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;E:\maven\repository\org\apache\httpcomponents\httpclient\4.5.9\httpclient-4.5.9.jar;E:\maven\repository\org\apache\httpcomponents\httpcore\4.4.11\httpcore-4.4.11.jar;E:\maven\repository\commons-codec\commons-codec\1.11\commons-codec-1.11.jar;E:\maven\repository\com\google\inject\guice\4.1.0\guice-4.1.0.jar;E:\maven\repository\javax\inject\javax.inject\1\javax.inject-1.jar;E:\maven\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;E:\maven\repository\com\github\vlsi\compactmap\compactmap\1.2.1\compactmap-1.2.1.jar;E:\maven\repository\com\github\andrewoma\dexx\dexx-collections\0.2\dexx-collections-0.2.jar;E:\maven\repository\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar;E:\maven\repository\com\fasterxml\jackson\core\jackson-core\2.9.9\jackson-core-2.9.9.jar;E:\maven\repository\com\fasterxml\jackson\core\jackson-databind\2.9.9\jackson-databind-2.9.9.jar;E:\maven\repository\com\netflix\eureka\eureka-core\1.9.12\eureka-core-1.9.12.jar;E:\maven\repository\com\fasterxml\woodstox\woodstox-core\5.0.3\woodstox-core-5.0.3.jar;E:\maven\repository\org\codehaus\woodstox\stax2-api\3.1.4\stax2-api-3.1.4.jar;E:\maven\repository\org\springframework\cloud\spring-cloud-starter-netflix-archaius\2.1.2.RELEASE\spring-cloud-starter-netflix-archaius-2.1.2.RELEASE.jar;E:\maven\repository\org\springframework\cloud\spring-cloud-netflix-ribbon\2.1.2.RELEASE\spring-cloud-netflix-ribbon-2.1.2.RELEASE.jar;E:\maven\repository\org\springframework\cloud\spring-cloud-netflix-archaius\2.1.2.RELEASE\spring-cloud-netflix-archaius-2.1.2.RELEASE.jar;E:\maven\repository\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;E:\maven\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;E:\maven\repository\org\springframework\cloud\spring-cloud-starter-netflix-ribbon\2.1.2.RELEASE\spring-cloud-starter-netflix-ribbon-2.1.2.RELEASE.jar;E:\maven\repository\com\netflix\ribbon\ribbon\2.3.0\ribbon-2.3.0.jar;E:\maven\repository\com\netflix\ribbon\ribbon-transport\2.3.0\ribbon-transport-2.3.0.jar;E:\maven\repository\io\reactivex\rxnetty-contexts\0.4.9\rxnetty-contexts-0.4.9.jar;E:\maven\repository\io\reactivex\rxnetty-servo\0.4.9\rxnetty-servo-0.4.9.jar;E:\maven\repository\com\netflix\hystrix\hystrix-core\1.5.18\hystrix-core-1.5.18.jar;E:\maven\repository\org\hdrhistogram\HdrHistogram\2.1.9\HdrHistogram-2.1.9.jar;E:\maven\repository\io\reactivex\rxnetty\0.4.9\rxnetty-0.4.9.jar;E:\maven\repository\com\netflix\ribbon\ribbon-core\2.3.0\ribbon-core-2.3.0.jar;E:\maven\repository\com\netflix\ribbon\ribbon-httpclient\2.3.0\ribbon-httpclient-2.3.0.jar;E:\maven\repository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;E:\maven\repository\com\netflix\netflix-commons\netflix-commons-util\0.3.0\netflix-commons-util-0.3.0.jar;E:\maven\repository\com\netflix\ribbon\ribbon-loadbalancer\2.3.0\ribbon-loadbalancer-2.3.0.jar;E:\maven\repository\com\netflix\netflix-commons\netflix-statistics\0.1.1\netflix-statistics-0.1.1.jar;E:\maven\repository\io\reactivex\rxjava\1.3.8\rxjava-1.3.8.jar;E:\maven\repository\com\netflix\ribbon\ribbon-eureka\2.3.0\ribbon-eureka-2.3.0.jar;E:\maven\repository\org\slf4j\slf4j-api\1.7.26\slf4j-api-1.7.26.jar;E:\maven\repository\com\thoughtworks\xstream\xstream\1.4.10\xstream-1.4.10.jar;E:\maven\repository\xmlpull\xmlpull\1.1.3.1\xmlpull-1.1.3.1.jar;E:\maven\repository\xpp3\xpp3_min\1.1.4c\xpp3_min-1.1.4c.jar;E:\maven\repository\org\springframework\boot\spring-boot-starter\2.1.6.RELEASE\spring-boot-starter-2.1.6.RELEASE.jar;E:\maven\repository\org\springframework\boot\spring-boot\2.1.6.RELEASE\spring-boot-2.1.6.RELEASE.jar;E:\maven\repository\org\springframework\spring-context\5.1.8.RELEASE\spring-context-5.1.8.RELEASE.jar;E:\maven\repository\org\springframework\spring-expression\5.1.8.RELEASE\spring-expression-5.1.8.RELEASE.jar;E:\maven\repository\org\springframework\boot\spring-boot-starter-logging\2.1.6.RELEASE\spring-boot-starter-logging-2.1.6.RELEASE.jar;E:\maven\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;E:\maven\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;E:\maven\repository\org\apache\logging\log4j\log4j-to-slf4j\2.11.2\log4j-to-slf4j-2.11.2.jar;E:\maven\repository\org\apache\logging\log4j\log4j-api\2.11.2\log4j-api-2.11.2.jar;E:\maven\repository\org\slf4j\jul-to-slf4j\1.7.26\jul-to-slf4j-1.7.26.jar;E:\maven\repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;E:\maven\repository\org\yaml\snakeyaml\1.23\snakeyaml-1.23.jar;E:\maven\repository\org\springframework\spring-core\5.1.8.RELEASE\spring-core-5.1.8.RELEASE.jar;E:\maven\repository\org\springframework\spring-jcl\5.1.8.RELEASE\spring-jcl-5.1.8.RELEASE.jar;E:\Program Files\JetBrains\IntelliJ IDEA 2017.2.6\lib\idea_rt.jar" com.sg.eureka.client.EurekaClientDemoApplication
Connected to the target VM, address: '127.0.0.1:55838', transport: 'socket'
2019-08-06 17:52:40.028 INFO 17548 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$905aacce] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.1.6.RELEASE)
2019-08-06 17:52:41.717 INFO 17548 --- [ main] c.s.e.c.EurekaClientDemoApplication : No active profile set, falling back to default profiles: default
2019-08-06 17:52:41.947 INFO 17548 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=850cf4ea-6f64-3797-96fd-c9196a3d1b26
2019-08-06 17:52:41.984 INFO 17548 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$905aacce] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-08-06 17:52:41.993 WARN 17548 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
2019-08-06 17:52:41.994 INFO 17548 --- [ 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-08-06 17:52:41.997 WARN 17548 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
2019-08-06 17:52:41.997 INFO 17548 --- [ 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-08-06 17:52:43.760 INFO 17548 --- [ main] o.s.cloud.commons.util.InetUtils : Cannot determine local hostname
2019-08-06 17:52:45.333 INFO 17548 --- [ main] o.s.cloud.commons.util.InetUtils : Cannot determine local hostname
2019-08-06 17:52:45.421 INFO 17548 --- [ main] o.s.c.n.eureka.InstanceInfoFactory : Setting initial instance status as: STARTING
2019-08-06 17:52:45.449 INFO 17548 --- [ main] com.netflix.discovery.DiscoveryClient : Initializing Eureka in region us-east-1
2019-08-06 17:52:45.972 INFO 17548 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON encoding codec LegacyJacksonJson
2019-08-06 17:52:45.972 INFO 17548 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON decoding codec LegacyJacksonJson
2019-08-06 17:52:46.076 INFO 17548 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML encoding codec XStreamXml
2019-08-06 17:52:46.076 INFO 17548 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML decoding codec XStreamXml
2019-08-06 17:52:46.256 INFO 17548 --- [ main] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration
2019-08-06 17:52:46.559 INFO 17548 --- [ main] com.netflix.discovery.DiscoveryClient : Disable delta property : false
2019-08-06 17:52:46.559 INFO 17548 --- [ main] com.netflix.discovery.DiscoveryClient : Single vip registry refresh property : null
2019-08-06 17:52:46.559 INFO 17548 --- [ main] com.netflix.discovery.DiscoveryClient : Force full registry fetch : false
2019-08-06 17:52:46.559 INFO 17548 --- [ main] com.netflix.discovery.DiscoveryClient : Application is null : false
2019-08-06 17:52:46.559 INFO 17548 --- [ main] com.netflix.discovery.DiscoveryClient : Registered Applications size is zero : true
2019-08-06 17:52:46.559 INFO 17548 --- [ main] com.netflix.discovery.DiscoveryClient : Application version is -1: true
2019-08-06 17:52:46.559 INFO 17548 --- [ main] com.netflix.discovery.DiscoveryClient : Getting all instance registry info from the eureka server
2019-08-06 17:52:46.695 INFO 17548 --- [ main] com.netflix.discovery.DiscoveryClient : The response status is 200
2019-08-06 17:52:46.697 INFO 17548 --- [ main] com.netflix.discovery.DiscoveryClient : Starting heartbeat executor: renew interval is: 30
2019-08-06 17:52:46.699 INFO 17548 --- [ main] c.n.discovery.InstanceInfoReplicator : InstanceInfoReplicator onDemand update allowed rate per min is 4
2019-08-06 17:52:46.703 INFO 17548 --- [ main] com.netflix.discovery.DiscoveryClient : Discovery Client initialized at timestamp 1565085166701 with initial instances count: 2
2019-08-06 17:52:46.703 INFO 17548 --- [ main] o.s.c.n.e.s.EurekaServiceRegistry : Registering application EUREKA-CLIENT-DEMO with eureka with status UP
2019-08-06 17:52:46.704 INFO 17548 --- [ main] com.netflix.discovery.DiscoveryClient : Saw local status change event StatusChangeEvent [timestamp=1565085166704, current=UP, previous=STARTING]
2019-08-06 17:52:46.706 INFO 17548 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_EUREKA-CLIENT-DEMO/localhost:eureka-client-demo:8091: registering service...
2019-08-06 17:52:46.718 INFO 17548 --- [ main] c.s.e.c.EurekaClientDemoApplication : Started EurekaClientDemoApplication in 9.142 seconds (JVM running for 10.542)
2019-08-06 17:52:46.720 INFO 17548 --- [ Thread-23] o.s.c.n.e.s.EurekaServiceRegistry : Unregistering application EUREKA-CLIENT-DEMO with eureka with status DOWN
2019-08-06 17:52:46.720 WARN 17548 --- [ Thread-23] com.netflix.discovery.DiscoveryClient : Saw local status change event StatusChangeEvent [timestamp=1565085166720, current=DOWN, previous=UP]
2019-08-06 17:52:46.724 INFO 17548 --- [ Thread-23] com.netflix.discovery.DiscoveryClient : Shutting down DiscoveryClient ...
2019-08-06 17:52:46.740 INFO 17548 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_EUREKA-CLIENT-DEMO/localhost:eureka-client-demo:8091 - registration status: 204
2019-08-06 17:52:46.741 INFO 17548 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_EUREKA-CLIENT-DEMO/localhost:eureka-client-demo:8091: registering service...
2019-08-06 17:52:46.745 INFO 17548 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_EUREKA-CLIENT-DEMO/localhost:eureka-client-demo:8091 - registration status: 204
2019-08-06 17:52:46.745 INFO 17548 --- [ Thread-23] com.netflix.discovery.DiscoveryClient : Unregistering ...
2019-08-06 17:52:46.750 INFO 17548 --- [ Thread-23] com.netflix.discovery.DiscoveryClient : DiscoveryClient_EUREKA-CLIENT-DEMO/localhost:eureka-client-demo:8091 - deregister status: 200
Disconnected from the target VM, address: '127.0.0.1:55838', transport: 'socket'
2019-08-06 17:52:46.758 INFO 17548 --- [ Thread-23] com.netflix.discovery.DiscoveryClient : Completed shut down of DiscoveryClient
Process finished with exit code 0
這是因為缺少依賴導(dǎo)致的,在pom中加入
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
重新編譯打包就可以了。
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。