Idea creates a MAVEN-based spring framework
Recently, using idea, I found out that idea has assembled many templates, so you can create a maven-based spring MVC framework with just a few choices.
Preparatory work:
1. Installation: Idea, MAVEN, JDK, Tomcat
2, Idea configuration Jdk,maven,tomcat, please refer to my other articles, configuration, please ignore, direct next
Idea Configuration JDK
Idea Configuration Tomcat
Idea Configuration maven
3. Open File-->new Project and choose spring,spring MVC
2. Click Next to tick the Create project from template. (tick represents the creation of a maven-based spring MVC project, not a tick represents the creation of a normal spring MVC project)
3, modify the project name, directory information
4, click Finish, a project based on the MAVEN Spring MVC Project initialization is completed
5. Package, click File-->project Structure, open the Project tab, select the SDK version
6, click Open Artifacts tab, the following diagram, select
7. Select items to Package
8, click OK, close.
9. Refer to the Tomcat configuration page Select the war package you just played
10. Start Tomcat and click on the green triangle shown in the image below.