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.
csrf
form
You are calling for a POST yet have only defined GET methods. Change your endpoint to RequestMethod.POST