<select id="LoanPeriod" name="LoanPeriod">
<option th:each="loanPeriod: ${loanPeriods}"
th:text="${loanPeriod}"></option>
</select>
List<String> loanPeriods = new ArrayList<String>();
loanPeriods.add("6 months");
loanPeriods.add("9 months");
loanPeriods.add("12 months");
loanPeriods.add("24 months");
model.addAttribute("loanPeriods", loanPeriods);