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

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

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


    springSecurityFilterCh         


        
7条回答
  •  盖世英雄少女心
    2020-12-07 07:42

    I have been perplexed by "springSecurityFilterChain" in web.xml and found this answer in springframework security document:

    The element encapsulates the security configuration for the web layer of your application. >It creates a FilterChainProxy bean named "springSecurityFilterChain" which maintains the stack of >security filters which make up the web security configuration [19]. Some core filters are always >created and others will be added to the stack depending on the attributes child elements which are >present. The positions of the standard filters are fixed (see the filter order table in the >namespace introduction), removing a common source of errors with previous versions of the framework >when users had to configure the filter chain explicitly in theFilterChainProxy bean. You can, of >course, still do this if you need full control of the configuration.

    Here is the link http://docs.spring.io/spring-security/site/docs/3.0.x/reference/appendix-namespace.html

提交回复
热议问题