- 导入并更新Git项目后,需要配置Git角色和数据库连接。
-
Placement项目结构
-
项目
默认配置不需要修改。应该注意,必须选择项目语言级别,以与项目使用的jdk版本号一致,然后单击Apply。
-
-
模块
Click + to select Import Module, select.project under WebRoot in the project folder, and click OK until the project module configuration is complete. Sometimes importing a Git project will generate a web folder as the module directory in the project by default. In this case, you need to delete the web folder. ! [insert picture description here] (?x-oss-process=image/watermark, type_ZmFuZ3poZW5naGVpdGk, sha dow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0pld2F2ZU94Zm9yZA==,size_16,color_FFFFFF,t_70)
Right-click Add a web on the imported module, configure the Path in the Deployment Descriptors of the web as: project nameWebRootWEB-INFweb.xml, and the Web Resource Directory as: project nameWebRoot, and click Apply.
-
库
Click + to select Java, select: project nameWebRootWEB-INFlib, select ok, and click Apply. 
-
方面
Nothing needs to be done. If the previous configuration is correct, the Web directory appears in 方面. ! [insert picture description here] (?x-oss-process=image/watermark, type_ZmFuZ3poZW5naGVpdGk, sha dow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0pld2F2ZU94Zm9yZA==,size_16,color_FFFFFF,t_70)
-
工件
**It is recommended to click Create 工件 below the above 库 to create,<mark> Notice:</mark> After the creation is complete, click Fix below to add all missing dependencies. ** Another way to create 工件 is to click the + sign to create Web Applications: Exploded-From 模块. You also need to click Fix below after the creation is complete to add all missing dependencies. Now that the project runtime environment has been configured, configure Tomcat. ! [insert picture description here] (?x-oss-process=image/watermark, type_ZmFuZ3poZW5naGVpdGk, sha dow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0pld2F2ZU94Zm9yZA==,size_16,color_FFFFFF,t_70)
-
配置Tomcat
1. 项目运行环境配置完成后,请在“Tomcat’s Deployment”的“Deploy at server startup”中删除原有的Web环境,添加新配置的Web explosion
2. 然后配置名称,打开浏览器,On ‘Update’action:更新类和资源,On frame deactiveatinon:更新类和资源,JRE在Tomcat’s Server中。配置完成后,单击“应用”,单击“确定”。 - 到目前为止,IDEA配置了Git项目(非maven)的运行环境配置,并单击项目中的Debug按钮来运行项目。
