(1) Get the target project
First, download the project you want to deploy to your local eclipse workspace from a remote server via Git or the SVN tool
(2) Project Import
Way 1:file--new project--New Tomcat Project
The Tomcat project is named in accordance with the local project file name so that it is automatically populated with the contents of the local project under the new project.
Mode 2: file--import--maven--existing Maven Projects (This way there is a problem importing JSP files, it may be wrong, not recommended)
(3) Importing project-dependent jar package
Right-click on the project start Explorer---start shell here input command ant depend:reset wait build successful
(4) Right-click on the project name, refresh
If there are still some files have errors, then check each one, to exclude the cause of the error, if there are individual files due to Chinese garbled problem error, the entire environment has been set up UTF-8 still does not work, you can try to open the file as Notepad, and then replace back
(5) Configuring the Tomcat Server.xml file
<context path= "" reloadable= "true" docbase= "Project Path"/>
</Host>
(6) Configuring the host
127.0.0.1 Test
(7) Start the Tomcat server
Input Address: test//folder name/folder jsp file orhtml file name http://test/login/index.jsp
So far, the whole process has been combed.
How to import the Tomcat project deployment start in eclipse