1. Integrationin Eclipse, click Windows-->preference-->server-->runtimeenvironmentThe following screen appears, click the Add button, select the Tomcat version, and tick Createnewlocalserver,Click Next to follow the wizard installation.
2. Change configuration (Installation path, release path, etc.)since the integrated Tomcat is hosted by Eclipse, the default connection for Tomcat is blocked by Eclipse. when integrated tomcat runs, it is generally not accessible from the browser directly through the localhost:8080. usually for convenience, you need to modify the eclipse's configuration of tomcat appropriately:
when Tomcat is integrated, Windows-->showviews-->servers will appear as shown:
Double-click the server and the Configuration dialog box appears:
when the Tomcat integration is just installed, the serverlocation related options can be modified to change it into a diagram. Which, using Tomcat installation;the Deploy path (the release path) is also used with Tomcat's own WebApps path. on the right there is a port configuration module, which can be modified as needed. General default.
3. Automatic Deployment
Select a Javadynamicproject, right-click the project, Runas-->run on Server, and if the project is a new project that has never been automatically deployed by eclipse, it will jump out of the page:
Select always the this server when running this project.then click Next and select "which projects require automatic deployment".
then click Finish to start Tomcat for the first time.
each subsequent boot only needs to click Run on server. When the code changes, stop the server and click Run on server again to automatically deploy the project again. Each time you start the server, the eclipse comes with a browser that automatically jumps out and displays the project's home page, and each time you restart the server, you need to refresh the page to see what's updated.
Eclipse Integrated Tomcat and configuration