如何获取用户名或UserDetail
对象logout-success-url
?下面是我的配置:
<form-login default-target-url="/security/loginSuccess.action"
always-use-default-target="false"
authentication-failure-url="/security/loginFailed.action"
login-page="/security/restrictUser.action"/>
<logout invalidate-session="true" logout-success-url="/security/logoutUser.action" />
<session-management
session-authentication-strategy-ref="customMsgAwareConcurrentSessionControlStartegy"
invalid-session-url="/security/logoutUser.action"/>
我想在其中获取请求注销的用户名logout-success-url
(对我来说这是一个 Struts 2 操作方法)。我已经检查过了,但是当控件到达我的操作方法时SecurityContextHolder
,它似乎被清除了。SecurityContextHolder
logout-success-url