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.