This article introduces the process of creating a maven web project (graphic tutorial) by idea, and shares it with you, as follows:
1 Create a project workspace;
2. Create a maven basic project, with the specific operations as shown in the figure, next;
3. Create maven-related GroupId and ArtifactId, next;
4. Rewrite the file address of setting.xml (if you do not have this step, you can set it from the configuration yourself);
5. Create the project name, finish;
6. Open the configuration startup item window;
7. Add local tomcat startup. If the first part (there is no tomcat server option in green "+" please add it on Baidu, it is not difficult);
8. Configure the tomcat startup item;
9. Configure web projects in the maven environment. This window is a pop-up window after clicking on fix. After selecting the web, Apply will take effect in the lower right corner. Don’t forget to click.
10. Create a "Hello World" template project for the web. Don't forget to click Apply;
11. Go back to the window after clicking on the web in step 9, modify 1 path to 3, and save the same project directory structure;
12. You will find that the window below shows your project first, and then tomcat loads the web project configuration to complete;
13. Start tomcat and you will see the helloworld pop-up on the web page.
The above is all the content of this article. I hope it will be helpful to everyone's learning and I hope everyone will support Wulin.com more.