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.