Thymeleaf页面三元运算符
三元运算符根据0、1显示用户性别 可以使用三元运算符,两种写法写在括号内<td th:text="${emp.gender==0?'女':'男'}"></td>1写在括号外<td th:text="${emp.gender}==0?'女':'男'"></td&