호출할 th:frgment 이름 뒤에 괄호를 붙인뒤(매개변수명=${백엔드에서 넘긴 변수}) 를 같이 전달하면 th:frgment에
th:frgment 부분
th:frgment에서는
<div class="test_wrap" th:fragment="testWrapFragment">
<div th:if="${value1 == 'a'}">
value1 is a
</div>
<div th:if="${value1 == 'b'}">
value1 is b
</div>
</div>