Spring security login always lands in an error page with no message

后端 未结 6 1343
夕颜
夕颜 2020-12-16 06:22

I\'m using a login form for a small project in Spring but I have a small problem which is that every time I log in using a sign in form I get an error redirection.

T

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-16 06:30

    In my case there were some other requests that caused this to happen (one of them was 404 when loading css resource). After fixing them this error disappeared.

    EDIT

    To resolve the issue properly you should exclude /error page from spring security filters. Check Spring security redirects to page with status code 999 for details

提交回复
热议问题