SprintBoot Tomcat不能启动,报“Failed to start component [StandardEngine[Tomcat]”

问题:

SpringBoot应用,启动时报“Failed tostart component [StandardEngine[Tomcat]”等多个错误,嵌入TOMCAT不能启动。

 

解决:

搜索所子项目pom.xml文件,找到javax.servlet,添加或修改作用范围为required:

        <dependency>

            <groupId>javax.servletgroupId>

            <artifactId>servlet-apiartifactId>

            <version>2.5version>

            <scope>providedscope>

        dependency>

参考:

1、A child container failed, failed to start component. https://stackoverflow.com/questions/23630124/a-child-container-failed-failed-to-start-component

你可能感兴趣的:(JavaApp)