1. 在http://start.spring.io/中生成一个空的项目, 并使用IDEA 打开Open
2. 添加SpringMVC依赖
pom.xml中只有spring-boot-starter(核心模块,包括自动配置支持、日志和YAML)和spring-boot-starter-test(测试模块,包括JUnit、Hamcrest、Mockito)两个依赖, 现在添加spring-boot-starter-web来集
pom.xml中只有spring-boot-starter(核心模块,包括自动配置支持、日志和YAML)和spring-boot-starter-test(测试模块,包括JUnit、Hamcrest、Mockito)两个依赖, 现在添加spring-boot-starter-web来集