SpringCloud eureka client无法正常启动,配置application.yml不生效。下面是相关配置:
application.yml
eureka:
client:
service-url:
defaultZone: http://localhost:8761/eureka/
spring:
application:
name: eurekaclient
cloud:
loadbalancer:
ribbon:
enabled: false
server:
port: 8080
pom.xml相关依赖
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.1.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.imooc</groupId>
<artifactId>eurekaclient</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>eurekaclient</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>1.8</java.version>
<spring-cloud.version>Hoxton.RC2</spring-cloud.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
</repository>
</repositories>
</project>
启动打印出来的日志
D:\Java\jdk1.8.0_152\bin\java.exe -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:3174,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:C:\Users\QSJ\.IntelliJIdea2019.2\system\captureAgent\debugger-agent.jar -Dfile.encoding=UTF-8 -classpath "D:\Java\jdk1.8.0_152\jre\lib\charsets.jar;D:\Java\jdk1.8.0_152\jre\lib\deploy.jar;D:\Java\jdk1.8.0_152\jre\lib\ext\access-bridge-64.jar;D:\Java\jdk1.8.0_152\jre\lib\ext\cldrdata.jar;D:\Java\jdk1.8.0_152\jre\lib\ext\dnsns.jar;D:\Java\jdk1.8.0_152\jre\lib\ext\jaccess.jar;D:\Java\jdk1.8.0_152\jre\lib\ext\jfxrt.jar;D:\Java\jdk1.8.0_152\jre\lib\ext\localedata.jar;D:\Java\jdk1.8.0_152\jre\lib\ext\nashorn.jar;D:\Java\jdk1.8.0_152\jre\lib\ext\sunec.jar;D:\Java\jdk1.8.0_152\jre\lib\ext\sunjce_provider.jar;D:\Java\jdk1.8.0_152\jre\lib\ext\sunmscapi.jar;D:\Java\jdk1.8.0_152\jre\lib\ext\sunpkcs11.jar;D:\Java\jdk1.8.0_152\jre\lib\ext\zipfs.jar;D:\Java\jdk1.8.0_152\jre\lib\javaws.jar;D:\Java\jdk1.8.0_152\jre\lib\jce.jar;D:\Java\jdk1.8.0_152\jre\lib\jfr.jar;D:\Java\jdk1.8.0_152\jre\lib\jfxswt.jar;D:\Java\jdk1.8.0_152\jre\lib\jsse.jar;D:\Java\jdk1.8.0_152\jre\lib\management-agent.jar;D:\Java\jdk1.8.0_152\jre\lib\plugin.jar;D:\Java\jdk1.8.0_152\jre\lib\resources.jar;D:\Java\jdk1.8.0_152\jre\lib\rt.jar;E:\CompanyProject\yunnan\IMOOC\SpringCloudLearn\eurekaclient\target\classes;E:\maven4\beimingruanjian\repository\org\springframework\cloud\spring-cloud-starter-netflix-eureka-client\2.2.0.RC2\spring-cloud-starter-netflix-eureka-client-2.2.0.RC2.jar;E:\maven4\beimingruanjian\repository\org\springframework\cloud\spring-cloud-starter\2.2.0.RC2\spring-cloud-starter-2.2.0.RC2.jar;E:\maven4\beimingruanjian\repository\org\springframework\cloud\spring-cloud-context\2.2.0.RC2\spring-cloud-context-2.2.0.RC2.jar;E:\maven4\beimingruanjian\repository\org\springframework\security\spring-security-crypto\5.2.1.RELEASE\spring-security-crypto-5.2.1.RELEASE.jar;E:\maven4\beimingruanjian\repository\org\springframework\cloud\spring-cloud-commons\2.2.0.RC2\spring-cloud-commons-2.2.0.RC2.jar;E:\maven4\beimingruanjian\repository\org\springframework\security\spring-security-rsa\1.0.7.RELEASE\spring-security-rsa-1.0.7.RELEASE.jar;E:\maven4\beimingruanjian\repository\org\bouncycastle\bcpkix-jdk15on\1.60\bcpkix-jdk15on-1.60.jar;E:\maven4\beimingruanjian\repository\org\bouncycastle\bcprov-jdk15on\1.60\bcprov-jdk15on-1.60.jar;E:\maven4\beimingruanjian\repository\org\springframework\cloud\spring-cloud-netflix-hystrix\2.2.0.RC2\spring-cloud-netflix-hystrix-2.2.0.RC2.jar;E:\maven4\beimingruanjian\repository\org\springframework\boot\spring-boot-autoconfigure\2.2.1.RELEASE\spring-boot-autoconfigure-2.2.1.RELEASE.jar;E:\maven4\beimingruanjian\repository\org\springframework\boot\spring-boot-starter-aop\2.2.1.RELEASE\spring-boot-starter-aop-2.2.1.RELEASE.jar;E:\maven4\beimingruanjian\repository\org\springframework\spring-aop\5.2.1.RELEASE\spring-aop-5.2.1.RELEASE.jar;E:\maven4\beimingruanjian\repository\org\springframework\spring-beans\5.2.1.RELEASE\spring-beans-5.2.1.RELEASE.jar;E:\maven4\beimingruanjian\repository\org\aspectj\aspectjweaver\1.9.4\aspectjweaver-1.9.4.jar;E:\maven4\beimingruanjian\repository\org\springframework\cloud\spring-cloud-netflix-eureka-client\2.2.0.RC2\spring-cloud-netflix-eureka-client-2.2.0.RC2.jar;E:\maven4\beimingruanjian\repository\com\netflix\eureka\eureka-client\1.9.13\eureka-client-1.9.13.jar;E:\maven4\beimingruanjian\repository\org\codehaus\jettison\jettison\1.3.7\jettison-1.3.7.jar;E:\maven4\beimingruanjian\repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar;E:\maven4\beimingruanjian\repository\com\netflix\netflix-commons\netflix-eventbus\0.3.0\netflix-eventbus-0.3.0.jar;E:\maven4\beimingruanjian\repository\com\netflix\netflix-commons\netflix-infix\0.3.0\netflix-infix-0.3.0.jar;E:\maven4\beimingruanjian\repository\commons-jxpath\commons-jxpath\1.3\commons-jxpath-1.3.jar;E:\maven4\beimingruanjian\repository\joda-time\joda-time\2.10.5\joda-time-2.10.5.jar;E:\maven4\beimingruanjian\repository\org\antlr\antlr-runtime\3.4\antlr-runtime-3.4.jar;E:\maven4\beimingruanjian\repository\org\antlr\stringtemplate\3.2.1\stringtemplate-3.2.1.jar;E:\maven4\beimingruanjian\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;E:\maven4\beimingruanjian\repository\com\google\code\gson\gson\2.8.6\gson-2.8.6.jar;E:\maven4\beimingruanjian\repository\org\apache\commons\commons-math\2.2\commons-math-2.2.jar;E:\maven4\beimingruanjian\repository\com\netflix\archaius\archaius-core\0.7.6\archaius-core-0.7.6.jar;E:\maven4\beimingruanjian\repository\com\google\guava\guava\16.0\guava-16.0.jar;E:\maven4\beimingruanjian\repository\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;E:\maven4\beimingruanjian\repository\com\netflix\servo\servo-core\0.12.21\servo-core-0.12.21.jar;E:\maven4\beimingruanjian\repository\com\sun\jersey\jersey-core\1.19.1\jersey-core-1.19.1.jar;E:\maven4\beimingruanjian\repository\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;E:\maven4\beimingruanjian\repository\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;E:\maven4\beimingruanjian\repository\org\apache\httpcomponents\httpclient\4.5.10\httpclient-4.5.10.jar;E:\maven4\beimingruanjian\repository\org\apache\httpcomponents\httpcore\4.4.12\httpcore-4.4.12.jar;E:\maven4\beimingruanjian\repository\commons-codec\commons-codec\1.13\commons-codec-1.13.jar;E:\maven4\beimingruanjian\repository\com\google\inject\guice\4.1.0\guice-4.1.0.jar;E:\maven4\beimingruanjian\repository\javax\inject\javax.inject\1\javax.inject-1.jar;E:\maven4\beimingruanjian\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;E:\maven4\beimingruanjian\repository\com\fasterxml\jackson\core\jackson-annotations\2.10.0\jackson-annotations-2.10.0.jar;E:\maven4\beimingruanjian\repository\com\fasterxml\jackson\core\jackson-core\2.10.0\jackson-core-2.10.0.jar;E:\maven4\beimingruanjian\repository\com\fasterxml\jackson\core\jackson-databind\2.10.0\jackson-databind-2.10.0.jar;E:\maven4\beimingruanjian\repository\com\netflix\eureka\eureka-core\1.9.13\eureka-core-1.9.13.jar;E:\maven4\beimingruanjian\repository\com\fasterxml\woodstox\woodstox-core\5.2.1\woodstox-core-5.2.1.jar;E:\maven4\beimingruanjian\repository\org\codehaus\woodstox\stax2-api\4.2\stax2-api-4.2.jar;E:\maven4\beimingruanjian\repository\org\springframework\cloud\spring-cloud-starter-netflix-archaius\2.2.0.RC2\spring-cloud-starter-netflix-archaius-2.2.0.RC2.jar;E:\maven4\beimingruanjian\repository\org\springframework\cloud\spring-cloud-netflix-ribbon\2.2.0.RC2\spring-cloud-netflix-ribbon-2.2.0.RC2.jar;E:\maven4\beimingruanjian\repository\org\springframework\cloud\spring-cloud-netflix-archaius\2.2.0.RC2\spring-cloud-netflix-archaius-2.2.0.RC2.jar;E:\maven4\beimingruanjian\repository\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;E:\maven4\beimingruanjian\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;E:\maven4\beimingruanjian\repository\org\springframework\cloud\spring-cloud-starter-netflix-ribbon\2.2.0.RC2\spring-cloud-starter-netflix-ribbon-2.2.0.RC2.jar;E:\maven4\beimingruanjian\repository\com\netflix\ribbon\ribbon\2.3.0\ribbon-2.3.0.jar;E:\maven4\beimingruanjian\repository\com\netflix\ribbon\ribbon-transport\2.3.0\ribbon-transport-2.3.0.jar;E:\maven4\beimingruanjian\repository\io\reactivex\rxnetty-contexts\0.4.9\rxnetty-contexts-0.4.9.jar;E:\maven4\beimingruanjian\repository\io\reactivex\rxnetty-servo\0.4.9\rxnetty-servo-0.4.9.jar;E:\maven4\beimingruanjian\repository\com\netflix\hystrix\hystrix-core\1.5.18\hystrix-core-1.5.18.jar;E:\maven4\beimingruanjian\repository\org\hdrhistogram\HdrHistogram\2.1.9\HdrHistogram-2.1.9.jar;E:\maven4\beimingruanjian\repository\io\reactivex\rxnetty\0.4.9\rxnetty-0.4.9.jar;E:\maven4\beimingruanjian\repository\com\netflix\ribbon\ribbon-core\2.3.0\ribbon-core-2.3.0.jar;E:\maven4\beimingruanjian\repository\com\netflix\ribbon\ribbon-httpclient\2.3.0\ribbon-httpclient-2.3.0.jar;E:\maven4\beimingruanjian\repository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;E:\maven4\beimingruanjian\repository\com\netflix\netflix-commons\netflix-commons-util\0.3.0\netflix-commons-util-0.3.0.jar;E:\maven4\beimingruanjian\repository\com\netflix\ribbon\ribbon-loadbalancer\2.3.0\ribbon-loadbalancer-2.3.0.jar;E:\maven4\beimingruanjian\repository\com\netflix\netflix-commons\netflix-statistics\0.1.1\netflix-statistics-0.1.1.jar;E:\maven4\beimingruanjian\repository\io\reactivex\rxjava\1.3.8\rxjava-1.3.8.jar;E:\maven4\beimingruanjian\repository\org\springframework\cloud\spring-cloud-starter-loadbalancer\2.2.0.RC2\spring-cloud-starter-loadbalancer-2.2.0.RC2.jar;E:\maven4\beimingruanjian\repository\org\springframework\cloud\spring-cloud-loadbalancer\2.2.0.RC2\spring-cloud-loadbalancer-2.2.0.RC2.jar;E:\maven4\beimingruanjian\repository\io\projectreactor\reactor-core\3.3.0.RELEASE\reactor-core-3.3.0.RELEASE.jar;E:\maven4\beimingruanjian\repository\org\reactivestreams\reactive-streams\1.0.3\reactive-streams-1.0.3.jar;E:\maven4\beimingruanjian\repository\io\projectreactor\addons\reactor-extra\3.3.0.RELEASE\reactor-extra-3.3.0.RELEASE.jar;E:\maven4\beimingruanjian\repository\org\springframework\boot\spring-boot-starter-cache\2.2.1.RELEASE\spring-boot-starter-cache-2.2.1.RELEASE.jar;E:\maven4\beimingruanjian\repository\org\springframework\spring-context-support\5.2.1.RELEASE\spring-context-support-5.2.1.RELEASE.jar;E:\maven4\beimingruanjian\repository\com\netflix\ribbon\ribbon-eureka\2.3.0\ribbon-eureka-2.3.0.jar;E:\maven4\beimingruanjian\repository\org\slf4j\slf4j-api\1.7.29\slf4j-api-1.7.29.jar;E:\maven4\beimingruanjian\repository\com\thoughtworks\xstream\xstream\1.4.11.1\xstream-1.4.11.1.jar;E:\maven4\beimingruanjian\repository\xmlpull\xmlpull\1.1.3.1\xmlpull-1.1.3.1.jar;E:\maven4\beimingruanjian\repository\xpp3\xpp3_min\1.1.4c\xpp3_min-1.1.4c.jar;E:\maven4\beimingruanjian\repository\org\springframework\boot\spring-boot-starter-test\2.2.1.RELEASE\spring-boot-starter-test-2.2.1.RELEASE.jar;E:\maven4\beimingruanjian\repository\org\springframework\boot\spring-boot-starter\2.2.1.RELEASE\spring-boot-starter-2.2.1.RELEASE.jar;E:\maven4\beimingruanjian\repository\org\springframework\boot\spring-boot\2.2.1.RELEASE\spring-boot-2.2.1.RELEASE.jar;E:\maven4\beimingruanjian\repository\org\springframework\spring-context\5.2.1.RELEASE\spring-context-5.2.1.RELEASE.jar;E:\maven4\beimingruanjian\repository\org\springframework\spring-expression\5.2.1.RELEASE\spring-expression-5.2.1.RELEASE.jar;E:\maven4\beimingruanjian\repository\org\springframework\boot\spring-boot-starter-logging\2.2.1.RELEASE\spring-boot-starter-logging-2.2.1.RELEASE.jar;E:\maven4\beimingruanjian\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;E:\maven4\beimingruanjian\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;E:\maven4\beimingruanjian\repository\org\apache\logging\log4j\log4j-to-slf4j\2.12.1\log4j-to-slf4j-2.12.1.jar;E:\maven4\beimingruanjian\repository\org\apache\logging\log4j\log4j-api\2.12.1\log4j-api-2.12.1.jar;E:\maven4\beimingruanjian\repository\org\slf4j\jul-to-slf4j\1.7.29\jul-to-slf4j-1.7.29.jar;E:\maven4\beimingruanjian\repository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;E:\maven4\beimingruanjian\repository\org\yaml\snakeyaml\1.25\snakeyaml-1.25.jar;E:\maven4\beimingruanjian\repository\org\springframework\boot\spring-boot-test\2.2.1.RELEASE\spring-boot-test-2.2.1.RELEASE.jar;E:\maven4\beimingruanjian\repository\org\springframework\boot\spring-boot-test-autoconfigure\2.2.1.RELEASE\spring-boot-test-autoconfigure-2.2.1.RELEASE.jar;E:\maven4\beimingruanjian\repository\com\jayway\jsonpath\json-path\2.4.0\json-path-2.4.0.jar;E:\maven4\beimingruanjian\repository\net\minidev\json-smart\2.3\json-smart-2.3.jar;E:\maven4\beimingruanjian\repository\net\minidev\accessors-smart\1.2\accessors-smart-1.2.jar;E:\maven4\beimingruanjian\repository\org\ow2\asm\asm\5.0.4\asm-5.0.4.jar;E:\maven4\beimingruanjian\repository\jakarta\xml\bind\jakarta.xml.bind-api\2.3.2\jakarta.xml.bind-api-2.3.2.jar;E:\maven4\beimingruanjian\repository\jakarta\activation\jakarta.activation-api\1.2.1\jakarta.activation-api-1.2.1.jar;E:\maven4\beimingruanjian\repository\org\junit\jupiter\junit-jupiter\5.5.2\junit-jupiter-5.5.2.jar;E:\maven4\beimingruanjian\repository\org\junit\jupiter\junit-jupiter-api\5.5.2\junit-jupiter-api-5.5.2.jar;E:\maven4\beimingruanjian\repository\org\apiguardian\apiguardian-api\1.1.0\apiguardian-api-1.1.0.jar;E:\maven4\beimingruanjian\repository\org\opentest4j\opentest4j\1.2.0\opentest4j-1.2.0.jar;E:\maven4\beimingruanjian\repository\org\junit\platform\junit-platform-commons\1.5.2\junit-platform-commons-1.5.2.jar;E:\maven4\beimingruanjian\repository\org\junit\jupiter\junit-jupiter-params\5.5.2\junit-jupiter-params-5.5.2.jar;E:\maven4\beimingruanjian\repository\org\junit\jupiter\junit-jupiter-engine\5.5.2\junit-jupiter-engine-5.5.2.jar;E:\maven4\beimingruanjian\repository\org\junit\platform\junit-platform-engine\1.5.2\junit-platform-engine-1.5.2.jar;E:\maven4\beimingruanjian\repository\org\mockito\mockito-junit-jupiter\3.1.0\mockito-junit-jupiter-3.1.0.jar;E:\maven4\beimingruanjian\repository\org\assertj\assertj-core\3.13.2\assertj-core-3.13.2.jar;E:\maven4\beimingruanjian\repository\org\hamcrest\hamcrest\2.1\hamcrest-2.1.jar;E:\maven4\beimingruanjian\repository\org\mockito\mockito-core\3.1.0\mockito-core-3.1.0.jar;E:\maven4\beimingruanjian\repository\net\bytebuddy\byte-buddy\1.10.2\byte-buddy-1.10.2.jar;E:\maven4\beimingruanjian\repository\net\bytebuddy\byte-buddy-agent\1.10.2\byte-buddy-agent-1.10.2.jar;E:\maven4\beimingruanjian\repository\org\objenesis\objenesis\2.6\objenesis-2.6.jar;E:\maven4\beimingruanjian\repository\org\skyscreamer\jsonassert\1.5.0\jsonassert-1.5.0.jar;E:\maven4\beimingruanjian\repository\com\vaadin\external\google\android-json\0.0.20131108.vaadin1\android-json-0.0.20131108.vaadin1.jar;E:\maven4\beimingruanjian\repository\org\springframework\spring-core\5.2.1.RELEASE\spring-core-5.2.1.RELEASE.jar;E:\maven4\beimingruanjian\repository\org\springframework\spring-jcl\5.2.1.RELEASE\spring-jcl-5.2.1.RELEASE.jar;E:\maven4\beimingruanjian\repository\org\springframework\spring-test\5.2.1.RELEASE\spring-test-5.2.1.RELEASE.jar;E:\maven4\beimingruanjian\repository\org\xmlunit\xmlunit-core\2.6.3\xmlunit-core-2.6.3.jar;E:\IDEA2019.02\IntelliJ IDEA 2019.2.2\lib\idea_rt.jar" com.imooc.eurekaclient.EurekaclientApplication
Connected to the target VM, address: '127.0.0.1:3174', transport: 'socket'
2019-11-15 10:40:32.258 INFO 14076 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$29e60d0d] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.2.1.RELEASE)
2019-11-15 10:40:32.701 INFO 14076 --- [ main] c.i.e.EurekaclientApplication : No active profile set, falling back to default profiles: default
2019-11-15 10:40:33.214 INFO 14076 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=f57c433e-3822-3079-9cce-80fcd7b6327b
2019-11-15 10:40:33.309 INFO 14076 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$29e60d0d] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-15 10:40:33.338 WARN 14076 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
2019-11-15 10:40:33.339 INFO 14076 --- [ 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-11-15 10:40:33.343 WARN 14076 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
2019-11-15 10:40:33.343 INFO 14076 --- [ 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-11-15 10:40:34.206 INFO 14076 --- [ main] o.s.c.n.eureka.InstanceInfoFactory : Setting initial instance status as: STARTING
2019-11-15 10:40:34.251 INFO 14076 --- [ main] com.netflix.discovery.DiscoveryClient : Initializing Eureka in region us-east-1
2019-11-15 10:40:34.937 INFO 14076 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON encoding codec LegacyJacksonJson
2019-11-15 10:40:34.937 INFO 14076 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON decoding codec LegacyJacksonJson
2019-11-15 10:40:35.068 INFO 14076 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML encoding codec XStreamXml
2019-11-15 10:40:35.068 INFO 14076 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML decoding codec XStreamXml
2019-11-15 10:40:35.352 INFO 14076 --- [ main] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration
2019-11-15 10:40:35.519 INFO 14076 --- [ main] com.netflix.discovery.DiscoveryClient : Disable delta property : false
2019-11-15 10:40:35.520 INFO 14076 --- [ main] com.netflix.discovery.DiscoveryClient : Single vip registry refresh property : null
2019-11-15 10:40:35.520 INFO 14076 --- [ main] com.netflix.discovery.DiscoveryClient : Force full registry fetch : false
2019-11-15 10:40:35.520 INFO 14076 --- [ main] com.netflix.discovery.DiscoveryClient : Application is null : false
2019-11-15 10:40:35.520 INFO 14076 --- [ main] com.netflix.discovery.DiscoveryClient : Registered Applications size is zero : true
2019-11-15 10:40:35.520 INFO 14076 --- [ main] com.netflix.discovery.DiscoveryClient : Application version is -1: true
2019-11-15 10:40:35.520 INFO 14076 --- [ main] com.netflix.discovery.DiscoveryClient : Getting all instance registry info from the eureka server
2019-11-15 10:40:35.704 INFO 14076 --- [ main] com.netflix.discovery.DiscoveryClient : The response status is 200
2019-11-15 10:40:35.708 INFO 14076 --- [ main] com.netflix.discovery.DiscoveryClient : Starting heartbeat executor: renew interval is: 30
2019-11-15 10:40:35.713 INFO 14076 --- [ main] c.n.discovery.InstanceInfoReplicator : InstanceInfoReplicator onDemand update allowed rate per min is 4
2019-11-15 10:40:35.723 INFO 14076 --- [ main] com.netflix.discovery.DiscoveryClient : Discovery Client initialized at timestamp 1573785635721 with initial instances count: 0
2019-11-15 10:40:35.728 INFO 14076 --- [ main] o.s.c.n.e.s.EurekaServiceRegistry : Registering application EUREKACLIENT with eureka with status UP
2019-11-15 10:40:35.729 INFO 14076 --- [ main] com.netflix.discovery.DiscoveryClient : Saw local status change event StatusChangeEvent [timestamp=1573785635729, current=UP, previous=STARTING]
2019-11-15 10:40:35.733 INFO 14076 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_EUREKACLIENT/YY-shijiangQ.zysoft.com.cn:eurekaclient:8080: registering service...
2019-11-15 10:40:35.759 INFO 14076 --- [ main] c.i.e.EurekaclientApplication : Started EurekaclientApplication in 5.339 seconds (JVM running for 6.476)
2019-11-15 10:40:35.766 INFO 14076 --- [extShutdownHook] o.s.c.n.e.s.EurekaServiceRegistry : Unregistering application EUREKACLIENT with eureka with status DOWN
2019-11-15 10:40:35.767 WARN 14076 --- [extShutdownHook] com.netflix.discovery.DiscoveryClient : Saw local status change event StatusChangeEvent [timestamp=1573785635767, current=DOWN, previous=UP]
2019-11-15 10:40:35.778 INFO 14076 --- [extShutdownHook] com.netflix.discovery.DiscoveryClient : Shutting down DiscoveryClient ...
2019-11-15 10:40:35.862 INFO 14076 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_EUREKACLIENT/YY-shijiangQ.zysoft.com.cn:eurekaclient:8080 - registration status: 204
2019-11-15 10:40:35.863 INFO 14076 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_EUREKACLIENT/YY-shijiangQ.zysoft.com.cn:eurekaclient:8080: registering service...
2019-11-15 10:40:35.869 INFO 14076 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_EUREKACLIENT/YY-shijiangQ.zysoft.com.cn:eurekaclient:8080 - registration status: 204
2019-11-15 10:40:35.869 INFO 14076 --- [extShutdownHook] com.netflix.discovery.DiscoveryClient : Unregistering ...
2019-11-15 10:40:35.877 INFO 14076 --- [extShutdownHook] com.netflix.discovery.DiscoveryClient : DiscoveryClient_EUREKACLIENT/YY-shijiangQ.zysoft.com.cn:eurekaclient:8080 - deregister status: 200
2019-11-15 10:40:35.889 INFO 14076 --- [extShutdownHook] com.netflix.discovery.DiscoveryClient : Completed shut down of DiscoveryClient
Disconnected from the target VM, address: '127.0.0.1:3174', transport: 'socket'
Process finished with exit code 0
经过研究和探索,最终得以解决。在pom.xml中加入依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>