我的例子是
SavedRequest savedRequest = (SavedRequest) httpRequest.getSession()
.getAttribute(AbstractProcessingFilter.SPRING_SECURITY_SAVED_REQUEST_KEY);
但这在SpringSecurity 3.1.1中不起作用
答案 0 :(得分:1)
SavedRequest savedRequest = (SavedRequest)httpRequest.getSession().getAttribute(AbstractProcessingFilter.SPRING_SECURITY_SAVED_REQUEST_KEY);