How does IDEA set and modify project properties ?, Idea modifying project properties

Source: Internet
Author: User

How does IDEA set and modify project properties ?, Idea modifying project properties
Find project structure

  1. 1

    Click the project structure button on the interface or press ctrl + alt + shift + s to open the project Settings page.

  2. END

  3. Set the default jdk and java language levels for the project
  4. 1

    Project in IntelliJ IDEA is equivalent to workspace in myeclipse, and module is equivalent to project in myeclipse.

    Setting the jdk and java language levels for a project is not required. You can set the sub-tables for each module. If the module is not set, the default jdk and java language levels set for the project are used.

  5. END

  6. Set modules attributes

  7. 1

    Click "add" to add a framework for a module. This allows idea to identify what it is.

  8. For example, for the most common web project, check whether the root directory path and web. xml Path it automatically filled in are correct after adding the project. Sometimes it is inaccurate and you need to adjust it yourself.

  9. The right side of the spring Project is the location of its configuration file. Being added as a spring project is not necessary, but it can bring us more comprehensive smart prompts and error-finding functions.

  10. Click a project to set its source file directory, output directory, and dependency directory.

    The source file directory includes the source code, test code, resources, and test resources. Generally, idea automatically sets these directories for us when creating or introducing a project.

  11. Set the output directory of the compiled class.

    It is best to manually set this by creating a new classes folder under the project's WEB-INF directory and then setting the output directory to this folder.

    This step is automatically completed in eclipse, which is not convenient for idea.

  12. Set the project's jar package or other dependent directories.

    You do not have to select the jar package one by one, directly put the jar package directory, the General is the WEB-INF \ lib directory to add in. Then add a tomcat libary, which will be used when tomcat is set.

  13. Set tomcat output directory

    Click the plus sign in Artifacts to add a tomcat output setting.

  14. Enter your tomcat webapps path in output directory, and add "\ Application name" to the path ".

    The directory structure in output root is

    WEB-INF

    Classes

    Lib

    It is usually set automatically.

    If you find that the directory structure in the output directory is not the same when starting tomcat, check whether the modules web project and project classes directory settings are correct.

  15.  

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.