- After the Git project is imported and updated, configure Git roles and database connections.
-
To configure the Project Structure
-
Project
The default configuration does not need to be modified. Note that the Project language level must be the same as the JDK version used by the Project. Click Apply.
-
Modules
Click + to select Import Module and select. Project under WebRoot in the project folder. Click OK to complete the configuration of project Module. Sometimes when importing Git projects, the default web folder will be generated as the module directory in the project. In this case, the Web folder must be deleted.
Right-click on the imported Module to Add a Web and configure the Path in the Deployment Descriptors of Web to be project name \WebRoot\ web-INF \web. XML and the Web Resource Directory to be: Project name \WebRoot, click Apply. -
Libraries
Click + to select Java, select project name \WebRoot\ web-INF \lib, select OK, and click Apply.
-
Facets
You don’t have to do anything. If the preceding configuration is correct, a Web directory appears in Facets.
-
Artifacts
It is recommended that you click Create Artifacts under the Libraries section above,* Note :* After the Artifacts are created, click the Fix section below to add any missing dependencies.
Another method for creating Artifacts is to click the + Web Applications: Exploded-From Modules to create them, and again click the Fix below to add any missing dependencies.
At this point, the project runtime environment is configured. Next, configure Tomcat.
1. After the project operating environment is configured, delete the original one in the Deployment Deployment of Tomcat server Startup and add the newly configured Web exploded
2. In the Tomcat Server, configure Name, Open Browser, On ‘Update’ action:Update classes and Resources,On Frame DeActiveAtinon :Update classes and Resources,JRE. When the configuration is complete, click Apply and OK.
- At this point, the IDEA configuration Git project (not Maven) running environment configuration is complete, click the Debug button in the project to run the project.