thymleaf th:if判断某值不为空

Posted xuchao0506

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了thymleaf th:if判断某值不为空相关的知识,希望对你有一定的参考价值。

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

代码:

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

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

以上是关于thymleaf th:if判断某值不为空的主要内容,如果未能解决你的问题,请参考以下文章