Spring Security - 405 Request Method 'POST' Not Supported

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

    Check your web.xml file you might forgot to keep "securityFilterChain"

    Use this code in web.xml file

    
    
        springSecurityFilterChain
        org.springframework.web.filter.DelegatingFilterProxy
    
    
        springSecurityFilterChain
        /*
    
    

提交回复
热议问题