Programming/Spring
[Spring] Thymeleaf에서 세션 확인 (th에서 authentication사용하기)
G_Gi
2021. 2. 14. 21:11
SMALL
<span th:if="${#authentication.principal.user.id} == ${board.user.id}">
<button id="btn-delete" class="btn btn-danger">삭제</button>
<button id="btn-update" class="btn btn-warning">수정</button>
</span>
#authentication.principal 로 접근 가능
LIST