Spring Security login after session expiration redirects to last JSF ajax request and displays its XML response like plain text

后端 未结 1 809
遇见更好的自我
遇见更好的自我 2021-01-15 04:36

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

1条回答
  •  梦谈多话
    2021-01-15 05:05

    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.

    0 讨论(0)
提交回复
热议问题