spring_boot_all_study/SpringBootThymeleaf/target/classes/templates/demo2.html

14 lines
250 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>*{...} : 选择表达式。</h1>
<div th:object="${c}">
<span th:text="*{name}"></span>
<span th:text="*{tel}"></span>
</div>
</body>
</html>