spring-guides / gs-securing-web

Securing a Web Application :: Learn how to protect your web application with Spring Security.

Home Page:http://spring.io/guides/gs/securing-web/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

redirect to a error page instead of previous requested page after login

hay-chan opened this issue · comments

Hi, I am trying to run the 'completed' demo in my local.
I am expecting to go to the 'hello' page after login, but it redirect to a 'Error Page'.
I tried SavedRequestAwareAuthenticationSuccessHandler, but it does not work, it still goes to the error page.

How should I do to land to the previous page after login?

I can't re-create the problem.