首页
IT
登录
6mi
u
盘
搜
搜 索
IT
SpringBoot - Unable to Start embedded tomcat
SpringBoot - Unable to Start embedded tomcat
xiaoxiao
2021-03-26
4
今天将项目中SpringBoot从1.3.5升级到1.5.1打成jar包后运行失败,报Unable to Start embedded tomcat异常。
检查jar包lib目录发现含有servlet-api,删除项目中servlet-api依赖,
如果是被其他依赖引用的,找到对应的依赖
在对应的依赖上加上exclusion配置,如下
<dependency> <groupId>org.apache.axis2</groupId> <artifactId>axis2-transport-http</artifactId> <version>1.6.2</version> <exclusions> <exclusion> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> </exclusion> </exclusions> </dependency>
重新打包项目成功运行
转载请注明原文地址: https://ju.6miu.com/read-500430.html
技术
最新回复
(
0
)