What's the point of Spring MVC's DelegatingFilterProxy?

后端 未结 7 1947
长发绾君心
长发绾君心 2020-12-07 06:56

I see this in my Spring MVC app\'s web.xml:


    springSecurityFilterCh         


        
7条回答
  •  离开以前
    2020-12-07 07:39

    Its been a long time but I had the same question and I found this: https://www.javacodegeeks.com/2013/11/spring-security-behind-the-scenes.html

    I tried to run my spring security project by removing the filter in question and also by adding it. What I found is if we add the filter, only then the call will redirect to required login page as defined in the spring-security configuration.

    Hence, agreeing to @Ryan's answer.

提交回复
热议问题