An error is reported when inheriting HttpServlet, usually Apache tomcat is not added under libraries
An error is reported when inheriting HttpServlet, usually Apache tomcat is not added under libraries
Solution:
①Right click on the project src file> build path and select Configure Build Path
②Select Libraries and click add Library
③Select Server Runtime to proceed to the next step
④ Select Apache Tomcat v7.0 (the corresponding version) and click ok. If it doesn't work, refresh the project and it will come out
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .