目录
1.引入thymeleaf
2.Thymeleaf使用
3.语法规则
1.引入thymeleaf
已经配置更高的版本,不用布局,如果默认的版本较低,可以布局高版本。
2.Thymeleaf使用
只要把
HTML
页面放在
classpath:/templates/
,
thymeleaf
就能自动渲染;
官方文档
https://www.thymeleaf.org/documentation.html
导入
thymeleaf
的名称空间
xmlns:th="http://www.thymeleaf.org
3.语法规则
表达式