Spring Security 3.1 에서 아래와 같은 코드를 화면에 적용하여 로그인 여부를 구분할 수 있습니다.
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<sec:authorize access="isAnonymous()">
<a href="/login" target="_self">Login</a>
</sec:authorize>
<sec:authorize access="isAuthenticated()">
<a href="/logout" target="_self">Logout</a>
</sec:authorize>
SMALL
'개발 아카이브 > Java·Spring' 카테고리의 다른 글
| 파일 입/출력 (0) | 2013.05.02 |
|---|---|
| File download 에러 (0) | 2013.05.02 |
| web.xml 에서 classpath 사용시 주의사항 (0) | 2013.04.16 |
| JAVA 환경변수 PATH 등록 (0) | 2013.03.08 |
| [Java] JDK 설치 (0) | 2013.03.08 |