spring-boot-starter-web模块包含了RESTful、Spring MVC、Tomcat 容器,用于快速构建web项目,同时也与我们目前项目非常契合(boss架构tomcat+springMVC),我们可以直接在pom.xml中配置依赖关系使用:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>