代码之家  ›  专栏  ›  技术社区  ›  robert trudel

胸腺素和状态和列表大小

  •  0
  • robert trudel  · 技术社区  · 6 年前

    我使用thymeleaf 3,我尝试在条件中使用“and”,并在条件中使用列表大小。

    <div th:if="${param.isGenerated and #lists.size(param.options) lt 1}" th:remove="tag">
        <label th:text="${param.value}"></label>
    </div>
    

    我得到这个错误

    org.attaparser.parseException:评估Springel的异常 表达式:

    1 回复  |  直到 6 年前
        1
  •  1
  •   Marc Collin    6 年前

    ${param.isGenerated and #lists.isEmpty(param.options)}