SpringCloud异常(Euruka):Application run failed java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder
`“C:\Program Files\Java\jdk1.8.0_162\bin\java.exe” -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:56685,suspend=y,server=n -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -javaagent:C:\Users\北落.IntelliJIdea2018.3\system\captureAgent\debugger-agent.jar -Dfile.encoding=UTF-8 -classpath “C:\Program Files\Java\jdk1.8.0_162\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\rt.jar;G:\javaDemo\springcloud-demo\springcloud\springcloud-eureka-7001\target\classes;E:\MavenRepository\maven_jar\org\springframework\cloud\spring-cloud-starter-eureka-server\1.4.6.RELEASE\spring-cloud-starter-eureka-server-1.4.6.RELEASE.jar;E:\MavenRepository\maven_jar\org\springframework\cloud\spring-cloud-starter-netflix-eureka-server\1.4.6.RELEASE\spring-cloud-starter-netflix-eureka-server-1.4.6.RELEASE.jar;E:\MavenRepository\maven_jar\org\springframework\cloud\spring-cloud-starter\1.3.5.RELEASE\spring-cloud-starter-1.3.5.RELEASE.jar;E:\MavenRepository\maven_jar\org\springframework\boot\spring-boot-starter\1.5.16.RELEASE\spring-boot-starter-1.5.16.RELEASE.jar;E:\MavenRepository\maven_jar\org\springframework\boot\spring-boot-starter-logging\1.5.16.RELEASE\spring-boot-starter-logging-1.5.16.RELEASE.jar;E:\MavenRepository\maven_jar\ch\qos\logback\logback-classic\1.1.11\logback-classic-1.1.11.jar;E:\MavenRepository\maven_jar\ch\qos\logback\logback-core\1.1.11\logback-core-1.1.11.jar;E:\MavenRepository\maven_jar\org\slf4j\jcl-over-slf4j\1.7.25\jcl-over-slf4j-1.7.25.jar;E:\MavenRepository\maven_jar\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;E:\MavenRepository\maven_jar\org\slf4j\log4j-over-slf4j\1.7.25\log4j-over-slf4j-1.7.25.jar;E:\MavenRepository\maven_jar\org\yaml\snakeyaml\1.17\snakeyaml-1.17.jar;E:\MavenRepository\maven_jar\org\springframework\cloud\spring-cloud-context\1.3.5.RELEASE\spring-cloud-context-1.3.5.RELEASE.jar;E:\MavenRepository\maven_jar\org\springframework\security\spring-security-crypto\4.2.8.RELEASE\spring-security-crypto-4.2.8.RELEASE.jar;E:\MavenRepository\maven_jar\org\springframework\cloud\spring-cloud-commons\1.3.5.RELEASE\spring-cloud-commons-1.3.5.RELEASE.jar;E:\MavenRepository\maven_jar\org\apache\httpcomponents\httpclient\4.5.1\httpclient-4.5.1.jar;E:\MavenRepository\maven_jar\org\apache\httpcomponents\httpcore\4.4.3\httpcore-4.4.3.jar;E:\MavenRepository\maven_jar\commons-codec\commons-codec\1.9\commons-codec-1.9.jar;E:\MavenRepository\maven_jar\org\springframework\security\spring-security-rsa\1.0.3.RELEASE\spring-security-rsa-1.0.3.RELEASE.jar;E:\MavenRepository\maven_jar\org\bouncycastle\bcpkix-jdk15on\1.55\bcpkix-jdk15on-1.55.jar;E:\MavenRepository\maven_jar\org\bouncycastle\bcprov-jdk15on\1.55\bcprov-jdk15on-1.55.jar;E:\MavenRepository\maven_jar\org\springframework\cloud\spring-cloud-netflix-eureka-server\1.4.6.RELEASE\spring-cloud-netflix-eureka-server-1.4.6.RELEASE.jar;E:\MavenRepository\maven_jar\org\springframework\boot\spring-boot-starter-web\1.5.16.RELEASE\spring-boot-starter-web-1.5.16.RELEASE.jar;E:\MavenRepository\maven_jar\org\springframework\boot\spring-boot-starter-tomcat\1.5.16.RELEASE\spring-boot-starter-tomcat-1.5.16.RELEASE.jar;E:\MavenRepository\maven_jar\org\apache\tomcat\embed\tomcat-embed-core\8.5.34\tomcat-embed-core-8.5.34.jar;E:\MavenRepository\maven_jar\org\apache\tomcat\tomcat-annotations-api\8.5.34\tomcat-annotations-api-8.5.34.jar;E:\MavenRepository\maven_jar\org\apache\tomcat\embed\tomcat-embed-el\8.5.34\tomcat-embed-el-8.5.34.jar;E:\MavenRepository\maven_jar\org\apache\tomcat\embed\tomcat-embed-websocket\8.5.34\tomcat-embed-websocket-8.5.34.jar;E:\MavenRepository\maven_jar\org\hibernate\hibernate-validator\5.3.6.Final\hibernate-validator-5.3.6.Final.jar;E:\MavenRepository\maven_jar\javax\validation\validation-api\1.1.0.Final\validation-api-1.1.0.Final.jar;E:\MavenRepository\maven_jar\org\jboss\logging\jboss-logging\3.3.0.Final\jboss-logging-3.3.0.Final.jar;E:\MavenRepository\maven_jar\com\fasterxml\classmate\1.3.1\classmate-1.3.1.jar;E:\MavenRepository\maven_jar\org\springframework\spring-web\4.3.19.RELEASE\spring-web-4.3.19.RELEASE.jar;E:\MavenRepository\maven_jar\org\springframework\spring-webmvc\4.3.19.RELEASE\spring-webmvc-4.3.19.RELEASE.jar;E:\MavenRepository\maven_jar\org\springframework\boot\spring-boot-starter-actuator\1.5.16.RELEASE\spring-boot-starter-actuator-1.5.16.RELEASE.jar;E:\MavenRepository\maven_jar\org\springframework\boot\spring-boot-actuator\1.5.16.RELEASE\spring-boot-actuator-1.5.16.RELEASE.jar;E:\MavenRepository\maven_jar\org\springframework\boot\spring-boot-starter-freemarker\1.5.16.RELEASE\spring-boot-starter-freemarker-1.5.16.RELEASE.jar;E:\MavenRepository\maven_jar\org\freemarker\freemarker\2.3.28\freemarker-2.3.28.jar;E:\MavenRepository\maven_jar\org\springframework\spring-context-support\4.3.19.RELEASE\spring-context-support-4.3.19.RELEASE.jar;E:\MavenRepository\maven_jar\org\springframework\cloud\spring-cloud-netflix-core\1.4.6.RELEASE\spring-cloud-netflix-core-1.4.6.RELEASE.jar;E:\MavenRepository\maven_jar\org\springframework\cloud\spring-cloud-netflix-eureka-client\1.4.6.RELEASE\spring-cloud-netflix-eureka-client-1.4.6.RELEASE.jar;E:\MavenRepository\maven_jar\com\netflix\eureka\eureka-client\1.7.2\eureka-client-1.7.2.jar;E:\MavenRepository\maven_jar\org\codehaus\jettison\jettison\1.3.7\jettison-1.3.7.jar;E:\MavenRepository\maven_jar\stax\stax-api\1.0.1\stax-api-1.0.1.jar;E:\MavenRepository\maven_jar\com\netflix\netflix-commons\netflix-eventbus\0.3.0\netflix-eventbus-0.3.0.jar;E:\MavenRepository\maven_jar\com\netflix\netflix-commons\netflix-infix\0.3.0\netflix-infix-0.3.0.jar;E:\MavenRepository\maven_jar\commons-jxpath\commons-jxpath\1.3\commons-jxpath-1.3.jar;E:\MavenRepository\maven_jar\org\antlr\antlr-runtime\3.4\antlr-runtime-3.4.jar;E:\MavenRepository\maven_jar\org\antlr\stringtemplate\3.2.1\stringtemplate-3.2.1.jar;E:\MavenRepository\maven_jar\antlr\antlr\2.7.7\antlr-2.7.7.jar;E:\MavenRepository\maven_jar\com\google\code\gson\gson\2.1\gson-2.1.jar;E:\MavenRepository\maven_jar\org\apache\commons\commons-math\2.2\commons-math-2.2.jar;E:\MavenRepository\maven_jar\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;E:\MavenRepository\maven_jar\com\netflix\servo\servo-core\0.10.1\servo-core-0.10.1.jar;E:\MavenRepository\maven_jar\com\netflix\servo\servo-internal\0.10.1\servo-internal-0.10.1.jar;E:\MavenRepository\maven_jar\com\sun\jersey\jersey-core\1.19.1\jersey-core-1.19.1.jar;E:\MavenRepository\maven_jar\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;E:\MavenRepository\maven_jar\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;E:\MavenRepository\maven_jar\com\google\inject\guice\4.1.0\guice-4.1.0.jar;E:\MavenRepository\maven_jar\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;E:\MavenRepository\maven_jar\com\sun\jersey\jersey-servlet\1.19.1\jersey-servlet-1.19.1.jar;E:\MavenRepository\maven_jar\com\sun\jersey\jersey-server\1.19.1\jersey-server-1.19.1.jar;E:\MavenRepository\maven_jar\com\netflix\eureka\eureka-core\1.7.2\eureka-core-1.7.2.jar;E:\MavenRepository\maven_jar\com\amazonaws\aws-java-sdk-core\1.11.105\aws-java-sdk-core-1.11.105.jar;E:\MavenRepository\maven_jar\commons-logging\commons-logging\1.1.3\commons-logging-1.1.3.jar;E:\MavenRepository\maven_jar\software\amazon\ion\ion-java\1.0.2\ion-java-1.0.2.jar;E:\MavenRepository\maven_jar\com\fasterxml\jackson\dataformat\jackson-dataformat-cbor\2.6.6\jackson-dataformat-cbor-2.6.6.jar;E:\MavenRepository\maven_jar\joda-time\joda-time\2.8.1\joda-time-2.8.1.jar;E:\MavenRepository\maven_jar\com\amazonaws\aws-java-sdk-ec2\1.11.105\aws-java-sdk-ec2-1.11.105.jar;E:\MavenRepository\maven_jar\com\amazonaws\jmespath-java\1.11.105\jmespath-java-1.11.105.jar;E:\MavenRepository\maven_jar\com\amazonaws\aws-java-sdk-autoscaling\1.11.105\aws-java-sdk-autoscaling-1.11.105.jar;E:\MavenRepository\maven_jar\com\amazonaws\aws-java-sdk-sts\1.11.105\aws-java-sdk-sts-1.11.105.jar;E:\MavenRepository\maven_jar\com\amazonaws\aws-java-sdk-route53\1.11.105\aws-java-sdk-route53-1.11.105.jar;E:\MavenRepository\maven_jar\javax\servlet\servlet-api\2.5\servlet-api-2.5.jar;E:\MavenRepository\maven_jar\org\codehaus\woodstox\woodstox-core-asl\4.4.1\woodstox-core-asl-4.4.1.jar;E:\MavenRepository\maven_jar\javax\xml\stream\stax-api\1.0-2\stax-api-1.0-2.jar;E:\MavenRepository\maven_jar\com\netflix\archaius\archaius-core\0.7.4\archaius-core-0.7.4.jar;E:\MavenRepository\maven_jar\com\google\code\findbugs\jsr305\3.0.1\jsr305-3.0.1.jar;E:\MavenRepository\maven_jar\javax\inject\javax.inject\1\javax.inject-1.jar;E:\MavenRepository\maven_jar\com\fasterxml\jackson\dataformat\jackson-dataformat-xml\2.8.11\jackson-dataformat-xml-2.8.11.jar;E:\MavenRepository\maven_jar\com\fasterxml\jackson\module\jackson-module-jaxb-annotations\2.8.11\jackson-module-jaxb-annotations-2.8.11.jar;E:\MavenRepository\maven_jar\org\codehaus\woodstox\stax2-api\3.1.4\stax2-api-3.1.4.jar;E:\MavenRepository\maven_jar\com\fasterxml\woodstox\woodstox-core\5.0.3\woodstox-core-5.0.3.jar;E:\MavenRepository\maven_jar\com\thoughtworks\xstream\xstream\1.4.10\xstream-1.4.10.jar;E:\MavenRepository\maven_jar\xmlpull\xmlpull\1.1.3.1\xmlpull-1.1.3.1.jar;E:\MavenRepository\maven_jar\xpp3\xpp3_min\1.1.4c\xpp3_min-1.1.4c.jar;E:\MavenRepository\maven_jar\org\springframework\cloud\spring-cloud-starter-netflix-archaius\1.4.6.RELEASE\spring-cloud-starter-netflix-archaius-1.4.6.RELEASE.jar;E:\MavenRepository\maven_jar\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;E:\MavenRepository\maven_jar\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;E:\MavenRepository\maven_jar\com\fasterxml\jackson\core\jackson-annotations\2.8.0\jackson-annotations-2.8.0.jar;E:\MavenRepository\maven_jar\com\fasterxml\jackson\core\jackson-core\2.8.11\jackson-core-2.8.11.jar;E:\MavenRepository\maven_jar\com\fasterxml\jackson\core\jackson-databind\2.8.11.2\jackson-databind-2.8.11.2.jar;E:\MavenRepository\maven_jar\com\google\guava\guava\18.0\guava-18.0.jar;E:\MavenRepository\maven_jar\org\springframework\cloud\spring-cloud-starter-netflix-ribbon\1.4.6.RELEASE\spring-cloud-starter-netflix-ribbon-1.4.6.RELEASE.jar;E:\MavenRepository\maven_jar\com\netflix\ribbon\ribbon\2.2.5\ribbon-2.2.5.jar;E:\MavenRepository\maven_jar\com\netflix\ribbon\ribbon-transport\2.2.5\ribbon-transport-2.2.5.jar;E:\MavenRepository\maven_jar\io\reactivex\rxnetty-contexts\0.4.9\rxnetty-contexts-0.4.9.jar;E:\MavenRepository\maven_jar\io\reactivex\rxnetty-servo\0.4.9\rxnetty-servo-0.4.9.jar;E:\MavenRepository\maven_jar\com\netflix\hystrix\hystrix-core\1.4.3\hystrix-core-1.4.3.jar;E:\MavenRepository\maven_jar\io\reactivex\rxnetty\0.4.9\rxnetty-0.4.9.jar;E:\MavenRepository\maven_jar\com\netflix\ribbon\ribbon-core\2.2.5\ribbon-core-2.2.5.jar;E:\MavenRepository\maven_jar\com\netflix\ribbon\ribbon-httpclient\2.2.5\ribbon-httpclient-2.2.5.jar;E:\MavenRepository\maven_jar\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;E:\MavenRepository\maven_jar\com\netflix\netflix-commons\netflix-commons-util\0.1.1\netflix-commons-util-0.1.1.jar;E:\MavenRepository\maven_jar\com\netflix\ribbon\ribbon-loadbalancer\2.2.5\ribbon-loadbalancer-2.2.5.jar;E:\MavenRepository\maven_jar\com\netflix\netflix-commons\netflix-statistics\0.1.1\netflix-statistics-0.1.1.jar;E:\MavenRepository\maven_jar\io\reactivex\rxjava\1.2.0\rxjava-1.2.0.jar;E:\MavenRepository\maven_jar\com\netflix\ribbon\ribbon-eureka\2.2.5\ribbon-eureka-2.2.5.jar;E:\MavenRepository\maven_jar\org\slf4j\slf4j-api\1.7.12\slf4j-api-1.7.12.jar;E:\MavenRepository\maven_jar\org\springframework\boot\spring-boot-devtools\2.1.4.RELEASE\spring-boot-devtools-2.1.4.RELEASE.jar;E:\MavenRepository\maven_jar\org\springframework\boot\spring-boot\2.1.4.RELEASE\spring-boot-2.1.4.RELEASE.jar;E:\MavenRepository\maven_jar\org\springframework\spring-core\5.1.6.RELEASE\spring-core-5.1.6.RELEASE.jar;E:\MavenRepository\maven_jar\org\springframework\spring-jcl\5.1.6.RELEASE\spring-jcl-5.1.6.RELEASE.jar;E:\MavenRepository\maven_jar\org\springframework\spring-context\5.1.6.RELEASE\spring-context-5.1.6.RELEASE.jar;E:\MavenRepository\maven_jar\org\springframework\spring-aop\5.1.6.RELEASE\spring-aop-5.1.6.RELEASE.jar;E:\MavenRepository\maven_jar\org\springframework\spring-beans\5.1.6.RELEASE\spring-beans-5.1.6.RELEASE.jar;E:\MavenRepository\maven_jar\org\springframework\spring-expression\5.1.6.RELEASE\spring-expression-5.1.6.RELEASE.jar;E:\MavenRepository\maven_jar\org\springframework\boot\spring-boot-autoconfigure\2.1.4.RELEASE\spring-boot-autoconfigure-2.1.4.RELEASE.jar;F:\IntelliJ IDEA 2018.3.5\lib\idea_rt.jar” com.beiluo.EurekaService_7001
Connected to the target VM, address: ‘127.0.0.1:56685’, transport: ‘socket’
17:45:59.132 [restartedMain] DEBUG org.springframework.boot.context.logging.ClasspathLoggingApplicationListener - Application failed to start with classpath: [file:/G:/javaDemo/springcloud-demo/springcloud/springcloud-eureka-7001/target/classes/]
17:45:59.146 [background-preinit] DEBUG org.jboss.logging - Logging Provider: org.jboss.logging.Slf4jLoggerProvider
17:45:59.149 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.3.6.Final
17:45:59.203 [background-preinit] DEBUG org.hibernate.validator.internal.engine.resolver.DefaultTraversableResolver - Cannot find javax.persistence.Persistence on classpath. Assuming non JPA 2 environment. All properties will per default be traversable.
17:45:59.212 [background-preinit] DEBUG org.hibernate.validator.internal.xml.ValidationXmlParser - Trying to load META-INF/validation.xml for XML based Validator configuration.
17:45:59.217 [background-preinit] DEBUG org.hibernate.validator.internal.xml.ResourceLoaderHelper - Trying to load META-INF/validation.xml via TCCL
17:45:59.217 [background-preinit] DEBUG org.hibernate.validator.internal.xml.ResourceLoaderHelper - Trying to load META-INF/validation.xml via Hibernate Validator’s class loader
17:45:59.218 [background-preinit] DEBUG org.hibernate.validator.internal.xml.ValidationXmlParser - No META-INF/validation.xml found. Using annotation based configuration only.
17:45:59.745 [restartedMain] ERROR org.springframework.boot.SpringApplication - Application run failed
java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.([Ljava/lang/Object;)V
at org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:161)
at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:102)
at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:68)
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:75)
at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)
at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:347)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:306)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
at com.beiluo.EurekaService_7001.main(EurekaService_7001.java:12)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
Disconnected from the target VM, address: ‘127.0.0.1:56685’, transport: ‘socket’
其根本原因是依赖包的版本冲突,我的这个pom.xml文件如下:
`
org.springframework.cloud
spring-cloud-starter-eureka-server
1.4.6.RELEASE
org.springframework.boot
spring-boot-devtools
2.1.4.RELEASE
`
注释掉即可 与该工程其他子模块冲突
`