SpringBoot集成Thymeleaf:
采用maven管理 在pom.xml文件中添加依赖配置:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
在页面添加头文件
<html xmlns:th="http://www.thymeleaf.org">
Thymeleaf 基本语法:
https://www.cnblogs.com/itdragon/archive/2018/04/13/8724291.html
本文介绍如何在SpringBoot项目中集成Thymeleaf模板引擎,包括添加Maven依赖配置、页面头文件设置及Thymeleaf基本语法链接。
160

被折叠的 条评论
为什么被折叠?



