我正在使用Spring / JSF / PrimeFaces Web应用程序,其中设置了会话超时,
<session-config>
<session-timeout>10</session-timeout>
</session-config>
并在春季安全
<global-method-security secured-annotations="enabled" />
<http auto-config="true" access-denied-page="/faces/ui/login.xhtml" use-expressions="true">
<form-login login-processing-url="/j_spring_security_check"
login-page="/faces/ui/Login.xhtml"
default-target-url="/faces/ui/FirstPage.xhtml"
authentication-failure-url="/faces/ui/Login.xhtml"
authentication-success-handler-ref="authenticationSuccessHandler" />
<logout invalidate-session="true"
logout-success-url="/faces/ui/Login.xhtml"
delete-cookies="JSESSIONID"
logout-url="/j_spring_security_logout"/>
<session-management invalid-session-url="/faces/ui/Login.xhtml">
<concurrency-control error-if-maximum-exceeded="true" max-sessions="2" expired-url="/faces/ui/Login.xhtml" />
</session-management>
<beans:bean id="authenticationSuccessHandler"
class="com.app.spring.security.AppSecurityUrlAuthenticationSuccessHandler" />
如何在springsecurity中为超时添加侦听器,这是
所必需的使用