![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Thymeleaf
wangwjtt
这个作者很懒,什么都没留下…
展开
-
Thymeleaf——th:each遍历Map List
@RequestMapping("/4") public Object a3(Model model){ Map<String,User> map1=new HashedMap(); User user1; for(int i=0;i<10;i++) { user1=new User(); user1.setUsername("xiao.li"+i);...原创 2018-12-29 10:02:47 · 14988 阅读 · 0 评论 -
thyleaf 简单使用语法
它们分为四类:1.变量表达式2.星号表达式3.文字国际化表达式4.URL表达式1. 变量表达式变量表达式即OGNL表达式或Spring EL表达式(在Spring术语中也叫model attributes)。如下所示:${session.user.name}2.星号表达式选择表达式很像变量表达式,不过它们用一个预先选择的对象来代替上下文变量容器(map)来执行,如下:*{cu...原创 2019-01-24 08:27:41 · 580 阅读 · 0 评论