After using IEDA to create a new jsp project, use javax.servlet.* to report an error

Create a new jsp project, and then configure everything inside and write a servlet file:

 

 When I click to run, there is an error that the javax package does not exist. Many Baidu are saying that it is tomcat. Copy the servlet-api.jar package under tomcat/lib to the lib under WEB_INF of the project and restart it. . But still no effect. After thinking about it carefully, it should be a step down when IDEA configures tomcat:

This place needs to configure a new tomcat configuration.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325036973&siteId=291194637
Recommended