tomcat lack javax / server-api error

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


Here Insert Picture Description
A solution :

  • Adding Targeted Rintimes environment. The default jar tommcat back under load of lib

Here Insert Picture Description

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> 

Guess you like

Origin blog.csdn.net/weixin_44619613/article/details/89074854