Spring Security - 405 Request Method 'POST' Not Supported

前端 未结 6 1433
执笔经年
执笔经年 2021-01-13 10:31

I have implemented Spring Security to my project, but I am getting status 405 when I try to log in. I have already added csrf token in the form.

6条回答
  •  北恋
    北恋 (楼主)
    2021-01-13 11:02

    You are calling for a POST yet have only defined GET methods. Change your endpoint to RequestMethod.POST

提交回复
热议问题