Thymeleaf,如何使 th:name 变成这样?

Thymeleaf, how to make th:name like this?

为此,我需要 th:namedishIdQuantityMap[dish.id](例如,如果菜的 ID 为 1 - dishIdQuantityMap[1]; 但是如何实现呢?

<div class="single-menu" th:each="dish : ${dishList}">
        <form action="#" th:action="@{/menu}" th:object="${order}" method="post">
       <input 
                                   th:value="0"
                                   th:name="!!!!"
                                   type="number"
                                   min="0"
                                   max="100"
                                   step="1"
                            />
        </form>
    </div>

这是一个 OrderDto 的例子。

 public class OrderDto {
        private Map<Long, Integer> dishIdQuantityMap;
    }

Standard expression syntax.

th:name="|dishIdQuantityMap[${dish.id}]|"

th:name="${'dishIdQuantityMap[' + dish.id  + ']'}"