1、Web支持
<!-- 添加 Web支持的starter pom ,这样就添加了web 依赖-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
2、Thymeleaf模板引擎
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
直接依赖了spring-boot-starter-web,无需显示依赖spring-boot-starter-web