Intellij idea in the creation of Java WebApp is not so humane, novice use will be everywhere. Hereby record!
First, File--new--project
Second, next--input groupid, Artifactid
Archetypecatalog Set internal (for select intranet)
Iii. next--Enter the project name and path
Iv. Import Change the upper right corner has a prompt box, whether the import change, should be selected. Otherwise you will need to create Web support yourself.
If you just did not click, WebApp will not have a small earth, resource just a directory need we manually set.
1. Open Project Settings
2. Add Web Support
3. Modify the path of the web directory
after modification
The directory structure is fine.
Create the Java source file directory after creating the directory set to source Root
Six, Test
1. Configuring the Tomcat server
If the dropdown does not have application server, click Next to "Configure" to add a local directory to select Tomcat
2. Adding a Deployment project
3. Add a new configuration
Run, the view page is displayed correctly. This is the end! ~
From for notes (Wiz)
Intellij idea maven creating a Web project