thymleaf th:if判断某值不为空

简单描述:判断后台传递过来的值,是否为空,来做一些业务上的处理。

代码:

<div class="col-md-6" th:if="${not #strings.isEmpty(user.userName)}"> 

 thymleaf模板还有很多好用的,点滴积累!ヾ(◍°∇°◍)ノ゙

猜你喜欢

转载自www.cnblogs.com/xuchao0506/p/10122809.html