比较它们中的两个变量:属性名称不能为null或为空

Compare two variable in thymeleaf it throw runtime exception
org.attoparser.ParseException: Attribute name cannot be null or empty
I'm comparing this statement regularPrice != salePrice.

<div th: if="${batch.regularPrice} &lt; ${batch.salePrice}">
     <del class="dis-price"><i class="fa fa-rupee"></i>
         <span th:text="${#numbers.formatDecimal(batch.regularPrice, 0, 'COMMA', 0, 'POINT')}"></span>
     </del>
</div>
评论
Mr糖
Mr糖
我正在比较此语句RegularPrice!= salePrice。

更换

<div th: if="${batch.regularPrice} &lt; ${batch.salePrice}">

<div th:if="${batch.regularPrice != batch.salePrice}">
点赞
评论