如何在Spring Security 3.1.1中获取SavedRequest?

时间:2012-05-21 07:11:05

标签: spring-security

我的例子是

SavedRequest savedRequest = (SavedRequest) httpRequest.getSession()
       .getAttribute(AbstractProcessingFilter.SPRING_SECURITY_SAVED_REQUEST_KEY);

但这在SpringSecurity 3.1.1中不起作用

1 个答案:

答案 0 :(得分:1)

SavedRequest savedRequest = (SavedRequest)httpRequest.getSession().getAttribute(AbstractProcessingFilter.SPRING_SECURITY_SAVED_REQUEST_KEY);