springboot启动报错Unable to start embedded Tomcat
时间: 2023-08-25 17:16:26 浏览: 197
xxl-job-springboot:将xxl-job修改为springboot版本 本地测试直接启动就可以了。不再需要手动部署tomcat
回答: 当出现"Unable to start embedded Tomcat"错误时,通常是由于Tomcat的依赖版本冲突导致的。错误信息中的"java.lang.NoSuchMethodError: javax.servlet.ServletContext.getVirtualServerName()"表明Tomcat的版本与应用程序所使用的Servlet API版本不兼容。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* [eureka和springcloud服务无法启动问题](https://blog.csdn.net/qq_43607703/article/details/114521816)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
- *2* *3* [问题解决:Spring boot Unable to start embedded Tomcat报错](https://blog.csdn.net/awsl8694/article/details/128918613)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文