logout work
This commit is contained in:
parent
e84500c4c4
commit
794e3c0a95
|
@ -169,7 +169,7 @@
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<!-- Spring -->
|
<!-- Spring -->
|
||||||
<org.springframework.version>3.2.2.RELEASE</org.springframework.version>
|
<org.springframework.version>3.2.3.RELEASE</org.springframework.version>
|
||||||
<org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version>
|
<org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version>
|
||||||
|
|
||||||
<!-- logging -->
|
<!-- logging -->
|
||||||
|
@ -182,7 +182,7 @@
|
||||||
<mockito.version>1.9.5</mockito.version>
|
<mockito.version>1.9.5</mockito.version>
|
||||||
|
|
||||||
<httpcore.version>4.2.4</httpcore.version>
|
<httpcore.version>4.2.4</httpcore.version>
|
||||||
<httpclient.version>4.2.4</httpclient.version>
|
<httpclient.version>4.2.5</httpclient.version>
|
||||||
|
|
||||||
<rest-assured.version>1.8.0</rest-assured.version>
|
<rest-assured.version>1.8.0</rest-assured.version>
|
||||||
<groovy.version>1.8.9</groovy.version>
|
<groovy.version>1.8.9</groovy.version>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd">
|
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd">
|
||||||
|
|
||||||
<http use-expressions="true">
|
<http use-expressions="true">
|
||||||
<intercept-url pattern="/login*" access="isAnonymous()" />
|
<intercept-url pattern="/login*" access="permitAll" />
|
||||||
<intercept-url pattern="/**" access="isAuthenticated()" />
|
<intercept-url pattern="/**" access="isAuthenticated()" />
|
||||||
|
|
||||||
<form-login
|
<form-login
|
||||||
|
@ -16,6 +16,8 @@
|
||||||
authentication-failure-url="/login.html?error=true"
|
authentication-failure-url="/login.html?error=true"
|
||||||
always-use-default-target="true"/>
|
always-use-default-target="true"/>
|
||||||
|
|
||||||
|
<logout/>
|
||||||
|
|
||||||
</http>
|
</http>
|
||||||
|
|
||||||
<authentication-manager>
|
<authentication-manager>
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
<html>
|
<html>
|
||||||
<head></head>
|
<head></head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h1>This is the body of the sample view</h1>
|
<h1>This is the body of the sample view</h1>
|
||||||
|
<a href="<c:url value="j_spring_security_logout" />"> Logout</a>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue