Project Settings for Idea

Source: Internet
Author: User

First, there are several important concepts to clarify:

For Web projects, there are classes files in the Web root directory, lib files, and other JSP files, and the Java class under SRC should be set to output to the classes in the Web root directory after compilation. Therefore, the compiled class file, the project needs the jar package, various JSP configuration files and so on all have.

The content of the Web root directory directly constitutes a publishing whole, it can be compressed into a war, etc., with a container such as Tomcat to mount.

Multiple Output directories:

1 The compile output in project is a compiled export directory, and if the Web project can be set to classes in the Web root directory, this location is not very useful because it can be overridden in each module's path.

2 The location of the compiled output can be set in the path of the project module, which can be set to the classes file.

3 artifacts represents the finished product, which in development represents the file that is produced after the project is packaged, can be a exploded-bit compression type of war file, but also a compressed war file. Facets in development represents some of the frameworks used in the project, such as Web,spring,hibernate and so on. For Web projects, you need to add a web.

In idea's facets, it is necessary to make development descriptor to identify the Web. xml file, and to make the website resource directories the Web root directory. In idea's artifacts, after creating the exploded war file, the file is a folder, not a compressed file, so you can

Directly modified in Tomcat to render results (development mode), without rebooting, in artifacts, set output directory to be aware that the directory represents the export path of the packaged file, and Tomcat automatically finds the packaged file location instead of the copy into Tomcat WebApp, the most exploded war, the idea

Can be placed in and SRC peer out folder, can also be placed directly under the Web root directory, according to the pro-test, directly placed in the Web root directory can be implemented as a change is rendered, and placed in other directories do not have this effect, the expression does not understand, should be all can be, welcome correction. Package can only be recompiled for compressed war packages

To render the changes, no matter where they are placed.

module in the configuration:

General non-MAVEN project, SRC set to source can be, MAVEN project, according to the characteristics of the settings can also.

For Eclipse project files open with idea, you can open the. project file by just clicking on it, and then setting the project structure in turn.

Project Settings for Idea

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.