private LinkedHashMap<String, String> openingAreaSelect = new LinkedHashMap<>();
<div th:each="items : ${form.openingAreaSelect}" >
<h5 th:text="${items.key}"></h5>
<h5 th:text="${items.value}"></h5>
<h5 th:text="${items.last}"></h5>
</div>
正常th:each LIST的话可以items.key,items.value,items.index,items.last都能用
现在openingAreaSelect是map类型,只有key和value能用,写last的话报错
Property or field 'last' cannot be found on object of type 'java.util.LinkedHashMap$Entry' - maybe not public or not valid?
我该怎么样判断循环是否到最后一次