Thymeleaf的运算符
本人菜鸟一个,如果哪里有问题,希望您指正一下,谢谢!
Thymeleaf 的引用
<!DOCTYPE html>
<!-- 注意此处要引入的xmlns -->
<html lang="en" xmlns="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>显示对象</title>
</head>
<body>
<div>
<p th:text="'用户编号:' + ${member.uid}"></p>
<p th:text="'用户姓名:' + ${member.name}"></p>
<p th:text="'用户年龄:' + ${member.age}"></p>
<p th:text="'用户工资:' + ${member.salary}"></p>
<p th:text="'出生日期:' + ${member.birthday}"></p>
</div>
<hr/>
<div th:object="${member}">
<p th:text="'用户编号:' + *{uid}"></p>
<p th:text="'用户姓名:' + *{name}"></p>
<p th:text="'用户年龄:' + *{age}"></p>
<p th:text="'用户工资:' + *{salary}"></p>
<p th:text="'出生日期:' + *{birthday}"></p>
</div>
<hr/>
<div th:object="${member}">
<!--如果需要用符号,例如冒号等,只能用英文的哦-->
<p th:text="|用户编号:*{uid},还可以写|"></p>
<p th:text="|用户姓名:*{name}|"></p>
<p