Preliminary preparation
- eclipse
- The Tomcat server of the corresponding version has been configured on eclipse
The first step is to create a new dynamic project
The second step is to create a new Servlet
Continue to next, below you can choose the method you want to implement or overload
This will build a servlet
Possible problem
The jar package of the Servlet is not imported
In a situation like this, the error message indicates that the jar package is not imported. We can solve this problem.
Find the lib folder under the Tomcat installation directory, which stores the relevant jar packages needed for JavaEE development.
Publish the project
Enter your servlet name, you can