Disclaimer: This article is a blogger original article, reproduced mark the original address. https://blog.csdn.net/weixin_44619613/article/details/89074854
Problem Description: tomcat lack javax-servlet-api
A solution :
- Adding Targeted Rintimes environment. The default jar tommcat back under load of lib
Solution two:
- Add depend in pom file
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>