Idea Tomcat +eclipse-type deployment

Source: Internet
Author: User
Tags tomcat server

Using the habit of Eclipse, you haven't started using Maven yet, and using idea is a bit of a habit, and now record it for forgetting.

/* This step is actually not working when Tomcat uses external source **/a. Ctrl+alt+s open settings→build,execution, Deployments→compiler: Tick make Pr Oject automatically

B. Click F4 on the project to open the project configuration interface

C. projects:project compiler output modified to Yourprojectpathweb-inf\classes

d.modules→ Select the Web-inf\classes folder, click on the Exclude above it to exclude the classes from the project

E. run→debug configuration Open the Tomcat config interface, select deployments to remove Projectname:war exploded, add external source, select the directory where the project resides

After you run Tomcat, if you modify the class, you can ctrl+f9 to make the class reload effective. Changes to the JSP file will take effect directly.

If you want to modify the class can also be automatically loaded after modification, it is not possible to use the form of external source deployment, you need to use Artifats, and then in the Tomcat server interface put on ' Update ' action and on frame Deactivation action is modified to reload classes and resources. In this case, you need to specify a compiled output directory separately, using the idea of maven.

Idea Tomcat +eclipse-type deployment

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.