1.SpringBoot支持如下页面模板语言
---Thymeleaf SpringBoot官方推荐
---FreeMarker
---Velocity
---Groovy
SpringBoot默认存放模板页面的路径
1.src/main/resources/templates
2.src/main/view/templates
无论是使用什么模板语言都一样,当然默认路径是可以自定义的,不过一般不推荐这样做,另外Thymeleaf默认的页面文件后缀是.html templates目录的文件需要通过控制器方式来跳转
<!-- thymeleaf模板 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>