【发布时间】:2017-11-04 23:27:33
【问题描述】:
我试过object.qtdItem == 0,然后把TD的颜色设置为红色:
<td th:style="${obj.qtdItem == 0 ? 'color: red;'}" th:text="${obj.text}"></td>
但这发生了
error: Caused by:
org.springframework.expression.spel.SpelParseException: Expression
[perfil.qtdItem == 0 ? 'red'] @38: EL1044E: Unexpectedly ran out of
input
【问题讨论】:
标签: spring spring-mvc spring-boot thymeleaf