Thymeleaf语法详解
1.变量输出与字符串操作
1.1 基本用法
表达式 说明
th:text 在页面中输出值
th:value 可以将一个值放入到 input 标签的 value 中
遍历
循环遍历是我们经常要用到的功能。... map = new HashMap();
map.put("u1", new User(1,"张三",20));
map.put("u2", new User...(2,"李四",22));
map.put("u3", new User(3,"王五",24));
model.addAttribute("map", map);
model.addAttribute...>
三大作用域取值
request:
<span th:text="${#httpServletRequest.getAttribute('req')