IDEA Error:(7, 26) java: package javax.servlet.http does not exist

content

1. Problem phenomenon

Second, the cause of the problem

3. Solutions


1. Problem phenomenon

Use IDEA to open the web project, then run the project and report an error.

Second, the cause of the problem

The Tomcat in the previous project no longer exists, and you need to add your own Tomcat running project.

3. Solutions

File->Project Structure->Modules, delete the old Tomcat, click the plus sign, select Library Type, and select the corresponding Tomcat. This way your project runs under your Tomcat.

At this point, your problem is solved.

Guess you like

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