springboot启动服务失败
A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to initialize component
看了很多其他的文章,基本上都是servlet-api 或者jar包冲突的问题导致的,我个人的原因是我本地启动是好的,但是打包好放到服务器上有问题,所以是服务器环境的问题,因为服务器所有的环境和资源都不是root用户来部署的,我使用了root用户来部署这些东西,但是启动日志最后失败,根原因是
Caused by: java.lang.Error: Start attempted while running as user [root]. Running Tomcat as this user has been blocked by the Lifecycle listener ,
所以遇到错误还是需要把整个错误日志都看完,才能分析出找到原因!