Intellij idea maven creating a Web project

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.