th:field와 th:value를 같이 작성하면 타임리프가 자동으로 두 값을 비교해 checked 설정을 해준다.
<label th:each="facilite : ${facilites}">
<input type="checkbox" name="facilities" th:field="*{home.facilities}" th:value="${facilite.id}">
<span th:text="${facilite.name}"></span>
</label>
도움 받았던 글
https://catsbi.oopy.io/81398571-33b8-471f-8191-ca7415b86326