SprintBoot Tomcat不能启动,报“Failed to start component [StandardEngine[Tomcat]”
问题:
SpringBoot应用,启动时报“Failed tostart component [StandardEngine[Tomcat]”等多个错误,嵌入TOMCAT不能启动。
解决:
搜索所子项目pom.xml文件,找到javax.servlet,添加或修改作用范围为required:
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
参考:
1、A child container failed, failed to start component. https://stackoverflow.com/questions/23630124/a-child-container-failed-failed-to-start-component