摘要:
  阅读全文
posted @ 2021-09-16 21:56
不是孩子了
阅读(24)
评论(0)
推荐(0)
摘要:
  阅读全文
posted @ 2021-09-16 21:42
不是孩子了
阅读(184)
评论(0)
推荐(0)
摘要:
  阅读全文
posted @ 2021-09-16 21:18
不是孩子了
阅读(26)
评论(0)
推荐(0)
摘要:
1、内敛文本 thymeleaf官网明确表示:“数据:[[\({data}]]”必须放在标签的内部,但是“数据:[[\){data}]]”放在标签外部也可以生效。但是放在标签内部更加规范。因此,我们常常【th:inline="text"】放在body标签内部.如下: 2、内敛脚本:可以在js中取到后 阅读全文
posted @ 2021-09-16 20:46
不是孩子了
阅读(72)
评论(0)
推荐(0)
摘要:
  
评论(0)
推荐(0)
摘要:
 阅读全文
posted @ 2021-09-16 19:36
不是孩子了
阅读(324)
评论(0)
推荐(0)
摘要:
爆红不是错误,是idea无法识别 阅读全文
posted @ 2021-09-16 19:26
不是孩子了
阅读(214)
评论(0)
推荐(0)
摘要:
<body> <!-- user 当前循环的对象变量名称(随意起) userStat 当前循环对象状态的变量(可写,可不写),不写出来也可以用 ${userList} 当前循环的集合 --> <div th:each="user,userStat:${userList}"> <span th:tex 阅读全文
posted @ 2021-09-16 19:13
不是孩子了
阅读(832)
评论(0)
推荐(0)
摘要:
如果我们需要取值的话,需要用到th标签,否则的话,用不用没有区别,因为thymeleaf本来就是基于html的 阅读全文
posted @ 2021-09-16 18:21
不是孩子了
阅读(37)
评论(0)
推荐(0)
摘要:
  阅读全文
posted @ 2021-09-16 17:59
不是孩子了
阅读(33)
评论(0)
推荐(0)
摘要:
RestFul风格: 阅读全文
posted @ 2021-09-16 17:38
不是孩子了
阅读(42)
评论(0)
推荐(0)
摘要:
1、标准变量表达式(推荐) 2、选择变量表达式(星号变量表达式) 阅读全文
posted @ 2021-09-16 17:02
不是孩子了
阅读(76)
评论(0)
推荐(0)
摘要:
1、写controller @Controller public class UserController { @RequestMapping("/message") public String message(Model model){ model.addAttribute("message", 阅读全文
posted @ 2021-09-16 16:34
不是孩子了
阅读(514)
评论(0)
推荐(0)
摘要:
1、添加依赖 2、编写controller @Controller public class UserController { @RequestMapping("/message") public String message(Model model){ model.addAttribute("me 阅读全文
posted @ 2021-09-16 16:02
不是孩子了
阅读(12)
评论(0)
推荐(0)
摘要:
Thymeleaf对网络环境不存在严格的要求,既能用来web环境下,也能用在非web环境下。在非web环境下,能直接显示模板上的静态数据。在web环境下,能像jsp一样从后台就收数据并替换掉模板上的静态数据。他是基于HTML的,以HTML为载体。Thymeleaf要寄托在HTML标签下实现。 阅读全文
posted @ 2021-09-16 15:43
不是孩子了
阅读(24)
评论(0)
推荐(0)
摘要:
1、添加起步依赖 <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> </dependency> <dependency> <groupId>org.mybatis.spring.bo 阅读全文
posted @ 2021-09-16 15:38
不是孩子了
阅读(35)
评论(0)
推荐(0)