springboot启动报错:ERRORorg.springframework.boot.。。。
问题:
  ⽤⼀个已经搭建好的springboot⼯程改造成eureka。
  pom⽂件中springboot⾸先⽤的是2.0.6.RELEASE 
  springcloud⽤的Dalston.SR5
启动报如下错:
2:02:37.561 [main] DEBUG org.t.logging.ClasspathLoggingApplicationListener - Application failed to start with classpath: [file:/D:/software/Java/jdk1.8.0_121/jre/lib/charsets.jar, file:/D:/software/Java/jdk1.
22:02:37.687 [background-preinit] DEBUG org.jboss.logging - Logging Provider: org.jboss.logging.Log4j2LoggerProvider
22:02:37.689 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 6.0.13.Final
22:02:37.716 [background-preinit] DEBUG org.hibernate.solver.TraversableResolvers - Cannot find javax.persistence.Persistence on classpath. Assuming non JPA 2 environment. All properties will per default
22:02:37.721 [background-preinit] DEBUG org.hibernate.l.config.ValidationXmlParser - Trying to load l for XML based Validator configuration.
22:02:37.722 [background-preinit] DEBUG org.hibernate.l.config.ResourceLoaderHelper - Trying to load l via TCCL
22:02:37.722 [background-preinit] DEBUG org.hibernate.l.config.ResourceLoaderHelper - Trying to load l via Hibernate Validator's class loader
22:02:37.723 [background-preinit] DEBUG org.hibernate.l.config.ValidationXmlParser - No l found. U
sing annotation based configuration only.
22:02:37.908 [background-preinit] DEBUG org.ssageinterpolation.ResourceBundleMessageInterpolator - Loaded expression factory via original TCCL
22:02:37.915 [background-preinit] DEBUG org.hibernate.ine.ValidatorFactoryImpl - HV000234: Using org.ssageinterpolation.ResourceBundleMessageInterpolator as ValidatorFactory-scoped message int 22:02:37.915 [background-preinit] DEBUG org.hibernate.ine.ValidatorFactoryImpl - HV000234: Using org.hibernate.solver.TraverseAllTraversableResolver as ValidatorFactory-scoped traversable reso 22:02:37.916 [background-preinit] DEBUG org.hibernate.ine.ValidatorFactoryImpl - HV000234: Using org.hibernate.validator.internal.util.ExecutableParameterNameProvider as ValidatorFactory-scoped parameter name provide 22:02:37.916 [background-preinit] DEBUG org.hibernate.ine.ValidatorFactoryImpl - HV000234: Using org.hibernate.ine.DefaultClockProvider as ValidatorFactory-scoped clock provider.
22:02:37.916 [background-preinit] DEBUG org.hibernate.ine.ValidatorFactoryImpl - HV000234: Using org.hibernate.ine.scripting.DefaultScriptEvaluatorFactory as ValidatorFactory-scoped script evaluator f 22:02:38.270 [main] ERROR org.springframework.boot.SpringApplication - Application run failed
java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.<init>([Ljava/lang/Object;)V
at org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:157)
at org.springframework.cloud.ApplicationEvent(BootstrapApplicationListener.java:98)
at org.springframework.cloud.ApplicationEvent(BootstrapApplicationListener.java:64)
at t.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
at t.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
at t.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
at t.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)
at org.t.vironmentPrepared(EventPublishingRunListener.java:74)
at org.springframework.vironmentPrepared(SpringApplicationRunListeners.java:54)
at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:338)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:297)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1242)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1230)
at com.study.euraka.StudyEurakaApplication.main(StudyEurakaApplication.java:15)springcloud集成log4j2
Process finished with exit code 1
原因:
  springboot和springcloud版本不匹配
解决:
  降低springcloud的版本为:1.5.9.RELEASE

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。