public class AuthenticationSuccessHandlerImpl extends SimpleUrlAuthenticationSuccessHandler {
@Override
public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication)
throws IOException, ServletException {
//your code here
}
}
конфиг:
<beans:bean id="authSuccessHandler"
class="your.pachage.decleration.AuthenticationSuccessHandlerImpl"/>