thymeleaf多条件判断

解决办法:将逻辑关系全部写到大括号里面

<div th:if="${task.getStatusStr() !='已延期' ||task.getStatusStr()!='已完成'}"
                 th:text="${task.getStatusStr()}">
            </div>
原文地址:https://www.cnblogs.com/diffx/p/9866498.html