如何将springsecurity登陆成功后返回原来登录前页面
1个回答
展开全部
<http use-expressions="true">
<intercept-url pattern="/**/*.do" access="hasAnyRole('user', 'admin')" />
<intercept-url pattern="/**/*.jsp" access="isAuthenticated()" method="GET" />
<form-login login-page="/login.jsp" />
<remember-me />
<logout logout-success-url="/loggedout.jsp" delete-cookies="JSESSIONID"/>
<session-management invalid-session-url="/timeout.jsp">
<concurrency-control max-sessions="5" error-if-maximum-exceeded="true" />
</session-management>
<custom-filter ref="mySecurityFilter" before="FILTER_SECURITY_INTERCEPTOR"/>
</http>
<intercept-url pattern="/**/*.do" access="hasAnyRole('user', 'admin')" />
<intercept-url pattern="/**/*.jsp" access="isAuthenticated()" method="GET" />
<form-login login-page="/login.jsp" />
<remember-me />
<logout logout-success-url="/loggedout.jsp" delete-cookies="JSESSIONID"/>
<session-management invalid-session-url="/timeout.jsp">
<concurrency-control max-sessions="5" error-if-maximum-exceeded="true" />
</session-management>
<custom-filter ref="mySecurityFilter" before="FILTER_SECURITY_INTERCEPTOR"/>
</http>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询