FAQ: Src/main/java (missing) src/main/resouces (missing) src/test/java/(missing) solution in 4th
Install the process no longer repeat, I was directly installed STS, has integrated the MAVEN
Steps are as follows
1. After opening the STS, from File->new->other->maven->maven project Figure 1
2. Select Next, the default option, Next,catalog select Interal,filter input web, select Org.aphache.maven.archetypes,next,group ID and artifact ID can be entered arbitrarily, Artifact is the name of your project. Click Finish to complete. Figure 2
3. Select Engineering, properties, Project facts, check the Dynamic Web Module,java,javascript, version can choose a higher point of Figure 3
4. Problem, build path is wrong, temporarily do not know how to deal with figure 4
Update: Solution: Add the server Library on it, at the same time, the project will be added Src/main/java,src/main/resources,src/test/main three source folder; Figure 5
5.pom.xml file Writing, open Pom.xml, add the required dependency, you can go to http://mvnrepository.com/search such as the Spring Web MVC version can choose a high version, click Version Number, You can see the configuration that Maven needs, and copy it into Pom.xml to figure 6,7,8,9
The rest of the work is writing web.xml, writing a servlet configuration, writing Java files, etc.