I\'m working with a project that use Spring Security, Spring bean, JSF, PrimeFaces and Hibernate in combination.
In the homepage, I use poll to automatically get new
As Mr. BalusC said, Spring Security will redirect to last request after login. Because I used Poll so the it makes ajax request to the homepage after 10 seconds and when I login again, it will redirect to the ajax request.
So to solve this, I config in the security xml file as following, so that it will always redirect to the default page after login.
Thank you so much, Mr. BalusC.