springcloud与springboot版本冲突问题记录(一):springcloud启动报错

springcloud版本:Finchley.RELEASE
springboot版本:2.1.3.RELEASE

启动报错:

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-05-19 17:32:50.794 ERROR 57677 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

An attempt was made to call the method org.springframework.boot.autoconfigure.web.ServerProperties$Servlet.getServletPrefix()Ljava/lang/String; but it does not exist. Its class, org.springframework.boot.autoconfigure.web.ServerProperties$Servlet, is available from the following locations:

    jar:file:/Users/lishuaikang/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/2.1.3.RELEASE/spring-boot-autoconfigure-2.1.3.RELEASE.jar!/org/springframework/boot/autoconfigure/web/ServerProperties$Servlet.class

It was loaded from the following location:

    file:/Users/lishuaikang/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/2.1.3.RELEASE/spring-boot-autoconfigure-2.1.3.RELEASE.jar


Action:

Correct the classpath of your application so that it contains a single, compatible version of org.springframework.boot.autoconfigure.web.ServerProperties$Servlet


修改springcloud版本为:Greenwich.RELEASE

启动成功

你可能感兴趣的:(springcloud与springboot版本冲突问题记录(一):springcloud启动报错)