IDEA maven使用tomcat7插件启动报错:A child container failed during start

IDEA maven使用tomcat7插件启动报错:A child container failed during start

使用maven的tomcat7插件启动项目时出现上面的错误:A child container failed during start,

出现这个问题的原因是导入了servlet-api包,与tomcat7的依赖包servlet-api冲突IDEA maven使用tomcat7插件启动报错:A child container failed during start

检查pom.xml是否导入servlet-api

IDEA maven使用tomcat7插件启动报错:A child container failed during start

加上

<scope>provided</scope>

之后再次运行,成功启动

上一篇:Maven Assembly插件介绍


下一篇:使用PYTHON实现docx文档的读写