引入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
我的解决方案:
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-juli</artifactId>
<version>${tomcat.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-legacy</artifactId>
<version>1.1.0.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
<version>1.4.0.RELEASE</version>
</dependency>
为了使用eureka-client,将tomcat从8.0升级到8.5。
注意:另外,spring-boot-starter-tomcat增加了