thymeleaf
概念上建议百度
thymeleaf的语法
对于不同种类型会用到下面不同种符号
th:xxxxx=${
}
th:xxxxx=#{
}
th:xxxxx=@{
}
....
具体的可看官方文档
使用
导入依赖:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
在网页上导入环境
xmlns:th="http://www.thymeleaf.org"
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta