引入Eureka-Client的包,启动就报错 java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost]]

在一个正常运行的子模块中,引入Eureka-Client的包,启动就报错
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost]]

SpringCloud引入Eureka-Server报错解决及Eureka、Feign的使用_weixin_40598838的博客-CSDN博客
https://blog.csdn.net/weixin_40598838/article/details/108643283

问题未解决。

在依赖项中包含spring-cloud-starter-eureka-server会导致应用程序启动失败·问题#255·spring-cloud / spring-cloud-netflix
https://github.com/spring-cloud/spring-cloud-netflix/issues/255

我的解决方案:

org.springframework.boot
spring-boot-starter-tomcat
provided


org.apache.tomcat
tomcat-juli
${tomcat.version}


org.springframework.boot
spring-boot-starter-data-jpa


org.springframework.boot
spring-boot-legacy
1.1.0.RELEASE


org.springframework.cloud
spring-cloud-starter-netflix-eureka-client
1.4.0.RELEASE

为了使用eureka-client,将tomcat从8.0升级到8.5。
注意:另外,spring-boot-starter-tomcat增加了provided(效果待验证)。

posted @ 2020-09-23 15:17  rgqancy  阅读(388)  评论(0)    收藏  举报