Eclipse Integrated Tomcat and configuration

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.