ThymeleafでSelect要素の初期選択

More than 1 year has passed since last update.

<div th:object="${form}">

<select th:field="*{language.code}">
<option value="">-</option>
<option th:each="language : ${languages.list()}" th:value="${language.code()}" th:text="${language.label()}">言語</option>
</select>
</div>