1: Create Project: Click File-new Project in turn ;
2: Select the Empty Project project and click Next ;
3: Enter the project name and select the project path:
4: Create Module: Click Finish, the following window will pop up, Intellij selects Modules by default , click the plus sign, and select New Module ;
5: Select Java , configure Module SDK , select Web Application , configure Versions , and click Next:
6. Enter the Module Name and click Finish .
7 , select Project , configure the SDK:
8. Select Modules– ( Modules name) –Sources–web–WEB-INF:
9 , right-click WEB-INF , and then new folder, create classes directory and lib directory:
10. Select Paths , select Use Modules complie Output path , and specify the path as the classes directory created above:
11. Select Dependencies , click the plus sign on the right, select the first jars and... , select the lib directory created above , click OK , select jar Directory in the pop-up box , click OK , click OK below to complete the project configuration:
12. Configure the project : open index.jsp , enter the display content, such as " test... "
13 , configure the project server:
14 , click the plus sign, select tomcat server , select local:
15 , configure name , server , port number:
16. Select Deployment , click the + sign, and select the items configured above:
17. Set the Application context , click OK to complete the tomcat configuration:
18 , start the project
Paste_Image.png
Since then , the creation, configuration and startup of the entire IDEA project have been completed.