Spring Security - 405 Request Method 'POST' Not Supported

前端 未结 6 1474
执笔经年
执笔经年 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:07

    If you are using JSP/JSTL

    Change

    to

    
    

    with tag declaration

    <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
    

    solve my problem

提交回复
热议问题