一、用Intellij创建一个maven项目
并填写相应的工程名称等。
二、在pom文件中引入相关spring的jar包
<!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>3.2.5.RELEASE</version> </dependency> <!-- https://mvnrepository.com/ar