一、前言:
市场上的模板引擎有很多如下:
JSP、Velocity、Freemarker、Thymeleaf
而SpringBoot推荐的Thymeleaf,其语法更简单,功能更强大
二、引入thymeleaf
在pom.xml文件下加入以下代码
org.springframework.boot
spring-boot-starter-thymeleaf
切换thymeleaf版本
3.0.9.RELEASE
2.2.2
学习内容来自尚硅谷
市场上的模板引擎有很多如下:
JSP、Velocity、Freemarker、Thymeleaf
而SpringBoot推荐的Thymeleaf,其语法更简单,功能更强大
在pom.xml文件下加入以下代码
org.springframework.boot
spring-boot-starter-thymeleaf
切换thymeleaf版本
3.0.9.RELEASE
2.2.2
学习内容来自尚硅谷
微信扫码登录