IntelliJ IDEA usage (1): Create a maven web project, intellijmaven

Source: Internet
Author: User

IntelliJ IDEA usage (1): Create a maven web project, intellijmaven

After using eclipse to develop maven web projects, the company gradually began to understand what everyone said: "eclipse is not enough ". Indeed, eclipse is unfriendly when developing large web projects, especially maven-built projects, and sometimes there are inexplicable error prompts, sometimes the code of a class is changed without any errors, but a large number of errors are prompted, and the project under the tomcat server needs to be cleared every time the project is cleared. In short, all kinds of unhappiness, many java developers have switched to IntelliJ IDEA, and I will try again. The following illustration is based on IDEA 2016.1.

Step 1: new project, File --> Project

Step 2. Select create maven project and click next

Step 3: Enter the project information

Step 4, select the maven directory, you need to add a configuration item, For details, see: http://blog.csdn.net/qq_30551211/article/details/51277444

Step 5. Enter the project name and directory to complete Project Creation

Step 6. After creating a project, we can see the maven project structure.

The folder structure is:

 

Step 7: Create the main directory of the java source code and specify the directory of the source code

Click File --> Project Structure, or press ctrl + alt + shift + s to enter the Project Structure settings.

Then we can write code in the java directory.

 

Step 8. To set the output path of the class file, you must first create the target/class directory.

After setting, you can run the Demo and find the directory where the class file is produced.

This time I will write it here. Next I will explain in detail how to configure tomcat and jetty.

 

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.