How does IDEA set and modify project properties ?, Idea modifying project properties
Find project structure
- 1
Click the project structure button on the interface or press ctrl + alt + shift + s to open the project Settings page.
END
- Set the default jdk and java language levels for the project
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.
END
Set modules attributes
- 1
Click "add" to add a framework for a module. This allows idea to identify what it is.
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.
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.
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.
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.
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.
- Set tomcat output directory
Click the plus sign in Artifacts to add a tomcat output setting.
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.
-