1.의의

2.타임리프를 사용한 경우

<dependency>
			<groupId>org.thymeleaf.extras</groupId>
			<artifactId>thymeleaf-extras-springsecurity5</artifactId>
		</dependency>
<html xmlns:th="<http://www.thymeleaf.org>"
	xmlns:sec="<http://www.thymeleaf.org/thymeleaf-extras-springsecurity5>">

<body>
	<div align="right" th:fragment="header">
		<table>
			<tr sec:authorize="!isAuthenticated()">
				<td width="80"><a href="/user/register" th:text="#{header.joinMember}">�쉶�썝媛��엯</a></td>
				<td width="80"><a href="/auth/login" th:text="#{header.login}">濡쒓렇�씤</a></td>
			</tr>
			<tr sec:authorize="isAuthenticated()">
				<td width="180">
				<form action="loginForm.html" th:action="@{/auth/logout}" method="post">
					<span sec:authentication="principal.username">�솉湲몃룞</span>�떂 <button th:text="#{action.logout}">濡쒓렇�븘�썐</button>
				</form>
				</td>
			</tr>
		</table>
	</div>
</body>
</html>

3.JSP를 사용한 경우