- thymeleaf에서 if 사용
<div>
<span th:if="${list.seq == '1'}"></span>
<span th:if="${list.seq == '2'}"></span>
</div>
2. thymeleaf에서 if -else 사용
<div th:if="${list.useYn == 'Y'}">사용</div>
<div th:unless="${list.useYn == 'Y'}">미사용</div>
원문 출처 :