One: The prerequisites for configuring Tomcat in Eclipse:
1. Download a JDK, configure the environment variables;
2. Download one of the installed versions of Tomcat;
3. Download the appropriate eclipse;
Two: about how to configure the book on the internet I only say a few details
1:
At Target runtime this must be selected for the version of Tomcat or the system is empty by default, and after creating the servlet, there is no existing interface.
2. If you want to manually configure the virtual path in Web. XML, be sure to remove the virtual path given by the system (for example://@WebServlet ("/xxxxxx")). Otherwise, Tomcat will not be able to run. It's very important that this place blew my mind.
3. If you want to introduce dynamic Web projects from other workspaces into your workspace with import, there may be many warnings such as:
The solution is to place the mouse over the warning point and click Fix Project Setup. You can run it.
After that, you can run the servlet, but you don't have a workspace. The engineering solution is to right-click on the->refactor->move->use in front of the default location and then confirm that it is resolved.
JAVA Web Novice Prone to the misunderstanding (all of them do miss and pro-test effective)