创建SpringCloud注册中心eureka报错,解决方案

xl_echo编辑整理,欢迎转载,转载请声明文章来源。更多IT、编程案例、资料请联系QQ:1280023003 ,群:298140694
百战不败,依不自称常胜,百败不颓,依能奋力前行。——这才是真正的堪称强大!!


报错信息如下:

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/springframework/boot/spring-boot-autoconfigure/1.5.13.RELEASE/spring-boot-autoconfigure-1.5.13.RELEASE.jar!/org/springframework/boot/autoconfigure/jdbc/DataSourceAutoConfiguration$EmbeddedDatabaseConfiguration.class]; nested exception is java.lang.IllegalStateException: Could not evaluate condition on org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$EmbeddedDatabaseConfiguration due to org/springframework/jdbc/datasource/embedded/EmbeddedDatabaseType not found. Make sure your own configuration does not rely on that class. This can also happen if you are @ComponentScanning a springframework package (e.g. if you put a @ComponentScan in the default package by mistake)
    at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:311) ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE]
    at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:272) ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE]
    at org.springframework.context.annotation.ComponentScanAnnotationParser.parse(ComponentScanAnnotationParser.java:135) ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE]
    at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:289) ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE]
    at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:247) ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE]
    at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:200) ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE]
    at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:169) ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE]
    at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:308) ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE]
    at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:228) ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE]
    at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:272) ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE]
    at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:92) ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:687) ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:525) ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE]
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.13.RELEASE.jar:1.5.13.RELEASE]
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) ~[spring-boot-1.5.13.RELEASE.jar:1.5.13.RELEASE]
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) ~[spring-boot-1.5.13.RELEASE.jar:1.5.13.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) ~[spring-boot-1.5.13.RELEASE.jar:1.5.13.RELEASE]
    at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:134) [spring-boot-1.5.13.RELEASE.jar:1.5.13.RELEASE]
    at EurekaApplication.main(EurekaApplication.java:15) [classes/:na]
Caused by: java.lang.IllegalStateException: Could not evaluate condition on org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$EmbeddedDatabaseConfiguration due to org/springframework/jdbc/datasource/embedded/EmbeddedDatabaseType not found. Make sure your own configuration does not rely on that class. This can also happen if you are @ComponentScanning a springframework package (e.g. if you put a @ComponentScan in the default package by mistake)
    at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:55) ~[spring-boot-autoconfigure-1.5.13.RELEASE.jar:1.5.13.RELEASE]
    at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:102) ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE]
    at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:81) ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE]
    at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:64) ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE]
    at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.isConditionMatch(ClassPathScanningCandidateComponentProvider.java:371) ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE]
    at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.isCandidateComponent(ClassPathScanningCandidateComponentProvider.java:355) ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE]
    at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:288) ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE]
    ... 18 common frames omitted
Caused by: java.lang.NoClassDefFoundError: org/springframework/jdbc/datasource/embedded/EmbeddedDatabaseType
    at org.springframework.boot.autoconfigure.jdbc.EmbeddedDatabaseConnection.<clinit>(EmbeddedDatabaseConnection.java:50) ~[spring-boot-autoconfigure-1.5.13.RELEASE.jar:1.5.13.RELEASE]
    at org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$EmbeddedDatabaseCondition.getMatchOutcome(DataSourceAutoConfiguration.java:211) ~[spring-boot-autoconfigure-1.5.13.RELEASE.jar:1.5.13.RELEASE]
    at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:47) ~[spring-boot-autoconfigure-1.5.13.RELEASE.jar:1.5.13.RELEASE]
    ... 24 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_131]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_131]
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) ~[na:1.8.0_131]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_131]
    ... 27 common frames omitted

D:\developtools\Java\jdk1.8\bin\java.exe -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=18724 -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:\developtools\IDEA_IU\IntelliJ IDEA 2018.1.3\lib\idea_rt.jar=18725:D:\developtools\IDEA_IU\IntelliJ IDEA 2018.1.3\bin" -Dfile.encoding=UTF-8 -classpath D:\developtools\Java\jdk1.8\jre\lib\charsets.jar;D:\developtools\Java\jdk1.8\jre\lib\deploy.jar;D:\developtools\Java\jdk1.8\jre\lib\ext\access-bridge-64.jar;D:\developtools\Java\jdk1.8\jre\lib\ext\cldrdata.jar;D:\developtools\Java\jdk1.8\jre\lib\ext\dnsns.jar;D:\developtools\Java\jdk1.8\jre\lib\ext\jaccess.jar;D:\developtools\Java\jdk1.8\jre\lib\ext\jfxrt.jar;D:\developtools\Java\jdk1.8\jre\lib\ext\localedata.jar;D:\developtools\Java\jdk1.8\jre\lib\ext\nashorn.jar;D:\developtools\Java\jdk1.8\jre\lib\ext\sunec.jar;D:\developtools\Java\jdk1.8\jre\lib\ext\sunjce_provider.jar;D:\developtools\Java\jdk1.8\jre\lib\ext\sunmscapi.jar;D:\developtools\Java\jdk1.8\jre\lib\ext\sunpkcs11.jar;D:\developtools\Java\jdk1.8\jre\lib\ext\zipfs.jar;D:\developtools\Java\jdk1.8\jre\lib\javaws.jar;D:\developtools\Java\jdk1.8\jre\lib\jce.jar;D:\developtools\Java\jdk1.8\jre\lib\jfr.jar;D:\developtools\Java\jdk1.8\jre\lib\jfxswt.jar;D:\developtools\Java\jdk1.8\jre\lib\jsse.jar;D:\developtools\Java\jdk1.8\jre\lib\management-agent.jar;D:\developtools\Java\jdk1.8\jre\lib\plugin.jar;D:\developtools\Java\jdk1.8\jre\lib\resources.jar;D:\developtools\Java\jdk1.8\jre\lib\rt.jar;D:\springbootdemo\demo\target\classes;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\springframework\boot\spring-boot-starter\2.0.2.RELEASE\spring-boot-starter-2.0.2.RELEASE.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\springframework\boot\spring-boot-starter-logging\2.0.2.RELEASE\spring-boot-starter-logging-2.0.2.RELEASE.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\apache\logging\log4j\log4j-to-slf4j\2.10.0\log4j-to-slf4j-2.10.0.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\apache\logging\log4j\log4j-api\2.10.0\log4j-api-2.10.0.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\yaml\snakeyaml\1.19\snakeyaml-1.19.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\springframework\spring-core\5.0.6.RELEASE\spring-core-5.0.6.RELEASE.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\springframework\spring-jcl\5.0.6.RELEASE\spring-jcl-5.0.6.RELEASE.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\springframework\boot\spring-boot-autoconfigure\1.5.13.RELEASE\spring-boot-autoconfigure-1.5.13.RELEASE.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\springframework\boot\spring-boot\2.0.2.RELEASE\spring-boot-2.0.2.RELEASE.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\springframework\spring-context\5.0.6.RELEASE\spring-context-5.0.6.RELEASE.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\springframework\spring-aop\5.0.6.RELEASE\spring-aop-5.0.6.RELEASE.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\springframework\spring-beans\5.0.6.RELEASE\spring-beans-5.0.6.RELEASE.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\springframework\spring-expression\5.0.6.RELEASE\spring-expression-5.0.6.RELEASE.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\springframework\cloud\spring-cloud-netflix-eureka-server\1.3.6.RELEASE\spring-cloud-netflix-eureka-server-1.3.6.RELEASE.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\springframework\boot\spring-boot-starter-web\2.0.2.RELEASE\spring-boot-starter-web-2.0.2.RELEASE.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\springframework\boot\spring-boot-starter-json\2.0.2.RELEASE\spring-boot-starter-json-2.0.2.RELEASE.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.9.5\jackson-datatype-jdk8-2.9.5.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.9.5\jackson-datatype-jsr310-2.9.5.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.9.5\jackson-module-parameter-names-2.9.5.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\springframework\boot\spring-boot-starter-tomcat\2.0.2.RELEASE\spring-boot-starter-tomcat-2.0.2.RELEASE.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\apache\tomcat\embed\tomcat-embed-core\8.5.31\tomcat-embed-core-8.5.31.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\apache\tomcat\embed\tomcat-embed-el\8.5.31\tomcat-embed-el-8.5.31.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\apache\tomcat\embed\tomcat-embed-websocket\8.5.31\tomcat-embed-websocket-8.5.31.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\hibernate\validator\hibernate-validator\6.0.9.Final\hibernate-validator-6.0.9.Final.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\javax\validation\validation-api\2.0.1.Final\validation-api-2.0.1.Final.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\jboss\logging\jboss-logging\3.3.2.Final\jboss-logging-3.3.2.Final.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\fasterxml\classmate\1.3.4\classmate-1.3.4.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\springframework\spring-web\5.0.6.RELEASE\spring-web-5.0.6.RELEASE.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\springframework\spring-webmvc\5.0.6.RELEASE\spring-webmvc-5.0.6.RELEASE.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\springframework\boot\spring-boot-starter-actuator\2.0.2.RELEASE\spring-boot-starter-actuator-2.0.2.RELEASE.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\springframework\boot\spring-boot-actuator-autoconfigure\2.0.2.RELEASE\spring-boot-actuator-autoconfigure-2.0.2.RELEASE.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\springframework\boot\spring-boot-actuator\2.0.2.RELEASE\spring-boot-actuator-2.0.2.RELEASE.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\io\micrometer\micrometer-core\1.0.4\micrometer-core-1.0.4.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\hdrhistogram\HdrHistogram\2.1.10\HdrHistogram-2.1.10.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\springframework\boot\spring-boot-starter-freemarker\2.0.2.RELEASE\spring-boot-starter-freemarker-2.0.2.RELEASE.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\freemarker\freemarker\2.3.28\freemarker-2.3.28.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\springframework\spring-context-support\5.0.6.RELEASE\spring-context-support-5.0.6.RELEASE.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\springframework\cloud\spring-cloud-commons\1.2.5.RELEASE\spring-cloud-commons-1.2.5.RELEASE.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\springframework\security\spring-security-crypto\5.0.5.RELEASE\spring-security-crypto-5.0.5.RELEASE.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\springframework\cloud\spring-cloud-netflix-core\1.3.6.RELEASE\spring-cloud-netflix-core-1.3.6.RELEASE.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\springframework\cloud\spring-cloud-netflix-eureka-client\1.3.6.RELEASE\spring-cloud-netflix-eureka-client-1.3.6.RELEASE.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\netflix\eureka\eureka-client\1.6.2\eureka-client-1.6.2.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\codehaus\jettison\jettison\1.3.7\jettison-1.3.7.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\netflix\netflix-commons\netflix-eventbus\0.3.0\netflix-eventbus-0.3.0.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\netflix\netflix-commons\netflix-infix\0.3.0\netflix-infix-0.3.0.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\commons-jxpath\commons-jxpath\1.3\commons-jxpath-1.3.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\antlr\antlr-runtime\3.4\antlr-runtime-3.4.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\antlr\stringtemplate\3.2.1\stringtemplate-3.2.1.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\google\code\gson\gson\2.8.4\gson-2.8.4.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\apache\commons\commons-math\2.2\commons-math-2.2.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\netflix\servo\servo-core\0.10.1\servo-core-0.10.1.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\netflix\servo\servo-internal\0.10.1\servo-internal-0.10.1.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\sun\jersey\jersey-core\1.19.1\jersey-core-1.19.1.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\apache\httpcomponents\httpclient\4.5.5\httpclient-4.5.5.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\apache\httpcomponents\httpcore\4.4.9\httpcore-4.4.9.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\commons-codec\commons-codec\1.11\commons-codec-1.11.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\google\inject\guice\4.1.0\guice-4.1.0.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\fasterxml\jackson\core\jackson-core\2.9.5\jackson-core-2.9.5.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\fasterxml\jackson\core\jackson-databind\2.9.5\jackson-databind-2.9.5.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\sun\jersey\jersey-servlet\1.19.1\jersey-servlet-1.19.1.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\sun\jersey\jersey-server\1.19.1\jersey-server-1.19.1.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\netflix\eureka\eureka-core\1.6.2\eureka-core-1.6.2.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\amazonaws\aws-java-sdk-core\1.11.9\aws-java-sdk-core-1.11.9.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\commons-logging\commons-logging\1.1.3\commons-logging-1.1.3.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\fasterxml\jackson\dataformat\jackson-dataformat-cbor\2.9.5\jackson-dataformat-cbor-2.9.5.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\joda-time\joda-time\2.9.9\joda-time-2.9.9.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\amazonaws\aws-java-sdk-ec2\1.11.9\aws-java-sdk-ec2-1.11.9.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\amazonaws\aws-java-sdk-autoscaling\1.11.9\aws-java-sdk-autoscaling-1.11.9.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\amazonaws\aws-java-sdk-sts\1.11.9\aws-java-sdk-sts-1.11.9.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\amazonaws\aws-java-sdk-route53\1.11.9\aws-java-sdk-route53-1.11.9.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\javax\servlet\servlet-api\2.5\servlet-api-2.5.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\codehaus\woodstox\woodstox-core-asl\4.4.1\woodstox-core-asl-4.4.1.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\javax\xml\stream\stax-api\1.0-2\stax-api-1.0-2.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\netflix\archaius\archaius-core\0.7.4\archaius-core-0.7.4.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\google\code\findbugs\jsr305\3.0.1\jsr305-3.0.1.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\google\guava\guava\16.0\guava-16.0.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\javax\inject\javax.inject\1\javax.inject-1.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\fasterxml\jackson\dataformat\jackson-dataformat-xml\2.9.5\jackson-dataformat-xml-2.9.5.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\fasterxml\jackson\module\jackson-module-jaxb-annotations\2.9.5\jackson-module-jaxb-annotations-2.9.5.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\org\codehaus\woodstox\stax2-api\3.1.4\stax2-api-3.1.4.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\fasterxml\woodstox\woodstox-core\5.0.3\woodstox-core-5.0.3.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\com\thoughtworks\xstream\xstream\1.4.9\xstream-1.4.9.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\xmlpull\xmlpull\1.1.3.1\xmlpull-1.1.3.1.jar;D:\developtools\Maven\apache-maven-3.1.1-iead\repository\xpp3\xpp3_min\1.1.4c\xpp3_min-1.1.4c.jar com.example.demo.DemoApplication
17:50:03.835 [main] DEBUG org.springframework.boot.context.logging.ClasspathLoggingApplicationListener - Application failed to start with classpath: [file:/D:/developtools/Java/jdk1.8/jre/lib/charsets.jar, file:/D:/developtools/Java/jdk1.8/jre/lib/deploy.jar, file:/D:/developtools/Java/jdk1.8/jre/lib/ext/access-bridge-64.jar, file:/D:/developtools/Java/jdk1.8/jre/lib/ext/cldrdata.jar, file:/D:/developtools/Java/jdk1.8/jre/lib/ext/dnsns.jar, file:/D:/developtools/Java/jdk1.8/jre/lib/ext/jaccess.jar, file:/D:/developtools/Java/jdk1.8/jre/lib/ext/jfxrt.jar, file:/D:/developtools/Java/jdk1.8/jre/lib/ext/localedata.jar, file:/D:/developtools/Java/jdk1.8/jre/lib/ext/nashorn.jar, file:/D:/developtools/Java/jdk1.8/jre/lib/ext/sunec.jar, file:/D:/developtools/Java/jdk1.8/jre/lib/ext/sunjce_provider.jar, file:/D:/developtools/Java/jdk1.8/jre/lib/ext/sunmscapi.jar, file:/D:/developtools/Java/jdk1.8/jre/lib/ext/sunpkcs11.jar, file:/D:/developtools/Java/jdk1.8/jre/lib/ext/zipfs.jar, file:/D:/developtools/Java/jdk1.8/jre/lib/javaws.jar, file:/D:/developtools/Java/jdk1.8/jre/lib/jce.jar, file:/D:/developtools/Java/jdk1.8/jre/lib/jfr.jar, file:/D:/developtools/Java/jdk1.8/jre/lib/jfxswt.jar, file:/D:/developtools/Java/jdk1.8/jre/lib/jsse.jar, file:/D:/developtools/Java/jdk1.8/jre/lib/management-agent.jar, file:/D:/developtools/Java/jdk1.8/jre/lib/plugin.jar, file:/D:/developtools/Java/jdk1.8/jre/lib/resources.jar, file:/D:/developtools/Java/jdk1.8/jre/lib/rt.jar, file:/D:/springbootdemo/demo/target/classes/, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/springframework/boot/spring-boot-starter/2.0.2.RELEASE/spring-boot-starter-2.0.2.RELEASE.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/springframework/boot/spring-boot-starter-logging/2.0.2.RELEASE/spring-boot-starter-logging-2.0.2.RELEASE.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/ch/qos/logback/logback-core/1.2.3/logback-core-1.2.3.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/apache/logging/log4j/log4j-to-slf4j/2.10.0/log4j-to-slf4j-2.10.0.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/apache/logging/log4j/log4j-api/2.10.0/log4j-api-2.10.0.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/slf4j/jul-to-slf4j/1.7.25/jul-to-slf4j-1.7.25.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/javax/annotation/javax.annotation-api/1.3.2/javax.annotation-api-1.3.2.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/yaml/snakeyaml/1.19/snakeyaml-1.19.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/springframework/spring-core/5.0.6.RELEASE/spring-core-5.0.6.RELEASE.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/springframework/spring-jcl/5.0.6.RELEASE/spring-jcl-5.0.6.RELEASE.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/springframework/boot/spring-boot-autoconfigure/1.5.13.RELEASE/spring-boot-autoconfigure-1.5.13.RELEASE.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/springframework/boot/spring-boot/2.0.2.RELEASE/spring-boot-2.0.2.RELEASE.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/springframework/spring-context/5.0.6.RELEASE/spring-context-5.0.6.RELEASE.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/springframework/spring-aop/5.0.6.RELEASE/spring-aop-5.0.6.RELEASE.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/springframework/spring-beans/5.0.6.RELEASE/spring-beans-5.0.6.RELEASE.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/springframework/spring-expression/5.0.6.RELEASE/spring-expression-5.0.6.RELEASE.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/springframework/cloud/spring-cloud-netflix-eureka-server/1.3.6.RELEASE/spring-cloud-netflix-eureka-server-1.3.6.RELEASE.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/springframework/boot/spring-boot-starter-web/2.0.2.RELEASE/spring-boot-starter-web-2.0.2.RELEASE.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/springframework/boot/spring-boot-starter-json/2.0.2.RELEASE/spring-boot-starter-json-2.0.2.RELEASE.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.9.5/jackson-datatype-jdk8-2.9.5.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.9.5/jackson-datatype-jsr310-2.9.5.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.9.5/jackson-module-parameter-names-2.9.5.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/springframework/boot/spring-boot-starter-tomcat/2.0.2.RELEASE/spring-boot-starter-tomcat-2.0.2.RELEASE.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/apache/tomcat/embed/tomcat-embed-core/8.5.31/tomcat-embed-core-8.5.31.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/apache/tomcat/embed/tomcat-embed-el/8.5.31/tomcat-embed-el-8.5.31.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/apache/tomcat/embed/tomcat-embed-websocket/8.5.31/tomcat-embed-websocket-8.5.31.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/hibernate/validator/hibernate-validator/6.0.9.Final/hibernate-validator-6.0.9.Final.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/javax/validation/validation-api/2.0.1.Final/validation-api-2.0.1.Final.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/jboss/logging/jboss-logging/3.3.2.Final/jboss-logging-3.3.2.Final.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/fasterxml/classmate/1.3.4/classmate-1.3.4.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/springframework/spring-web/5.0.6.RELEASE/spring-web-5.0.6.RELEASE.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/springframework/spring-webmvc/5.0.6.RELEASE/spring-webmvc-5.0.6.RELEASE.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/springframework/boot/spring-boot-starter-actuator/2.0.2.RELEASE/spring-boot-starter-actuator-2.0.2.RELEASE.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/springframework/boot/spring-boot-actuator-autoconfigure/2.0.2.RELEASE/spring-boot-actuator-autoconfigure-2.0.2.RELEASE.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/springframework/boot/spring-boot-actuator/2.0.2.RELEASE/spring-boot-actuator-2.0.2.RELEASE.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/io/micrometer/micrometer-core/1.0.4/micrometer-core-1.0.4.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/hdrhistogram/HdrHistogram/2.1.10/HdrHistogram-2.1.10.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/latencyutils/LatencyUtils/2.0.3/LatencyUtils-2.0.3.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/springframework/boot/spring-boot-starter-freemarker/2.0.2.RELEASE/spring-boot-starter-freemarker-2.0.2.RELEASE.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/freemarker/freemarker/2.3.28/freemarker-2.3.28.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/springframework/spring-context-support/5.0.6.RELEASE/spring-context-support-5.0.6.RELEASE.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/springframework/cloud/spring-cloud-commons/1.2.5.RELEASE/spring-cloud-commons-1.2.5.RELEASE.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/springframework/security/spring-security-crypto/5.0.5.RELEASE/spring-security-crypto-5.0.5.RELEASE.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/springframework/cloud/spring-cloud-netflix-core/1.3.6.RELEASE/spring-cloud-netflix-core-1.3.6.RELEASE.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/springframework/cloud/spring-cloud-netflix-eureka-client/1.3.6.RELEASE/spring-cloud-netflix-eureka-client-1.3.6.RELEASE.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/netflix/eureka/eureka-client/1.6.2/eureka-client-1.6.2.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/codehaus/jettison/jettison/1.3.7/jettison-1.3.7.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/netflix/netflix-commons/netflix-eventbus/0.3.0/netflix-eventbus-0.3.0.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/netflix/netflix-commons/netflix-infix/0.3.0/netflix-infix-0.3.0.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/commons-jxpath/commons-jxpath/1.3/commons-jxpath-1.3.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/antlr/antlr-runtime/3.4/antlr-runtime-3.4.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/antlr/stringtemplate/3.2.1/stringtemplate-3.2.1.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/antlr/antlr/2.7.7/antlr-2.7.7.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/google/code/gson/gson/2.8.4/gson-2.8.4.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/apache/commons/commons-math/2.2/commons-math-2.2.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/javax/ws/rs/jsr311-api/1.1.1/jsr311-api-1.1.1.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/netflix/servo/servo-core/0.10.1/servo-core-0.10.1.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/netflix/servo/servo-internal/0.10.1/servo-internal-0.10.1.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/sun/jersey/jersey-core/1.19.1/jersey-core-1.19.1.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/sun/jersey/jersey-client/1.19.1/jersey-client-1.19.1.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/sun/jersey/contribs/jersey-apache-client4/1.19.1/jersey-apache-client4-1.19.1.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/apache/httpcomponents/httpclient/4.5.5/httpclient-4.5.5.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/apache/httpcomponents/httpcore/4.4.9/httpcore-4.4.9.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/commons-codec/commons-codec/1.11/commons-codec-1.11.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/google/inject/guice/4.1.0/guice-4.1.0.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/fasterxml/jackson/core/jackson-annotations/2.9.0/jackson-annotations-2.9.0.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/fasterxml/jackson/core/jackson-core/2.9.5/jackson-core-2.9.5.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/fasterxml/jackson/core/jackson-databind/2.9.5/jackson-databind-2.9.5.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/sun/jersey/jersey-servlet/1.19.1/jersey-servlet-1.19.1.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/sun/jersey/jersey-server/1.19.1/jersey-server-1.19.1.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/netflix/eureka/eureka-core/1.6.2/eureka-core-1.6.2.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/amazonaws/aws-java-sdk-core/1.11.9/aws-java-sdk-core-1.11.9.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-cbor/2.9.5/jackson-dataformat-cbor-2.9.5.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/joda-time/joda-time/2.9.9/joda-time-2.9.9.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/amazonaws/aws-java-sdk-ec2/1.11.9/aws-java-sdk-ec2-1.11.9.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/amazonaws/aws-java-sdk-autoscaling/1.11.9/aws-java-sdk-autoscaling-1.11.9.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/amazonaws/aws-java-sdk-sts/1.11.9/aws-java-sdk-sts-1.11.9.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/amazonaws/aws-java-sdk-route53/1.11.9/aws-java-sdk-route53-1.11.9.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/codehaus/woodstox/woodstox-core-asl/4.4.1/woodstox-core-asl-4.4.1.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/netflix/archaius/archaius-core/0.7.4/archaius-core-0.7.4.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/google/code/findbugs/jsr305/3.0.1/jsr305-3.0.1.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/commons-configuration/commons-configuration/1.8/commons-configuration-1.8.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/google/guava/guava/16.0/guava-16.0.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/javax/inject/javax.inject/1/javax.inject-1.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-xml/2.9.5/jackson-dataformat-xml-2.9.5.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/fasterxml/jackson/module/jackson-module-jaxb-annotations/2.9.5/jackson-module-jaxb-annotations-2.9.5.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/org/codehaus/woodstox/stax2-api/3.1.4/stax2-api-3.1.4.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/fasterxml/woodstox/woodstox-core/5.0.3/woodstox-core-5.0.3.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/com/thoughtworks/xstream/xstream/1.4.9/xstream-1.4.9.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/xmlpull/xmlpull/1.1.3.1/xmlpull-1.1.3.1.jar, file:/D:/developtools/Maven/apache-maven-3.1.1-iead/repository/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.jar, file:/D:/developtools/IDEA_IU/IntelliJ%20IDEA%202018.1.3/lib/idea_rt.jar]
17:50:03.843 [main] ERROR org.springframework.boot.SpringApplication - Application run failed
java.lang.NoClassDefFoundError: org/springframework/boot/bind/RelaxedDataBinder
    at org.springframework.cloud.client.HostInfoEnvironmentPostProcessor.getFirstNonLoopbackHostInfo(HostInfoEnvironmentPostProcessor.java:45)
    at org.springframework.cloud.client.HostInfoEnvironmentPostProcessor.postProcessEnvironment(HostInfoEnvironmentPostProcessor.java:34)
    at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEnvironmentPreparedEvent(ConfigFileApplicationListener.java:182)
    at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEvent(ConfigFileApplicationListener.java:168)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)
    at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:74)
    at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)
    at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:358)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:317)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
    at com.example.demo.DemoApplication.main(DemoApplication.java:12)
Caused by: java.lang.ClassNotFoundException: org.springframework.boot.bind.RelaxedDataBinder
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 15 common frames omitted

Process finished with exit code 1

解决方案:

先将maven配置进环境变量–图解
这里写图片描述

这里写图片描述

查看配置是否成功
这里写图片描述

启动dos命令,输入mvn -v 如果出现上面的结果,证明成功了。

其次查看pom文件里面的配置,由于版本问题,看看是否兼容,如果版本不对,会出现问题,我的更改为一下代码就好了

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.5.12.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

建议这种工程最好直接使用生成,不要自己引入依赖,生成地址:http://start.spring.io/

最后创建或者导入成功直接等待一会,有些依赖需要时间下载。最终启动项目,在浏览器访问看到如下界面就成功啦
这里写图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

xlecho

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值