I believe that many code farmers are using eclipse + tomcat to develop and publish web projects, and they also know how troublesome it is. Here the author will introduce a relatively simple method of opening and publishing javaWeb projects.
This method is: eclipse JavaEE version + tomcatplugin.
1. Preparatory work to be done
eclipse JavaEE development version, tomcatplugin plug-in, tomcat
After downloading the eclispe javaEE version and installing the tomcatplugin plug-in for this version, open eclipse and you can see the following ticket
2. Create a Web project under eclipse JavaEE, let the following figure step by step
Step 1, step
2, project name,
step 3, step
4, check to create web.xml
3. The eclipse configuration is as follows step by step
Step 1: Find the tomcat configuration item of eclipse
Step 2: Configure eclise's tomcat
The configuration here is to generate a file pointing to the project and directory in the E:\tomcat\conf\Catalina\localhost directory of tomcat.
4. Project configuration
Step 1: Find the tomcat selection of the project
Step 2: Configure the project's tomcat options
After configuring these, an eclipseJavaEETest.xml will be generated in the E:\tomcat\conf\Catalina\localhost directory.
Start and stop the service as shown below