如何在Thymeleaf上设置多个条件

ryo*_*ato 3 spring thymeleaf

我想在这样的Thymeleaf模板上设置一些条件,但它不起作用.

<li th:if="${entry.description != null && entry.owner == true}" th:each="entry : ${entryList}" class="group">
Run Code Online (Sandbox Code Playgroud)

如何正确使用此代码?

Aes*_*eir 12

更换

"${entry.description != null && entry.owner == true}"
Run Code Online (Sandbox Code Playgroud)

"${entry.description != null and entry.owner == true}"
Run Code Online (Sandbox Code Playgroud)

供参考,您可以查看以下主题:http: //forum.thymeleaf.org/How-to-have-multiple-condition-in-an-th-if-tag-td4025931.html

让我知道你怎样去