<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
<init-param>
<param-name>contextAttribute</param-name>
<param-value>org.springframework.web.servlet.FrameworkServlet.CONTEXT.spring-mvc</param-value>
</init-param>
</filter>
spring-mvc是DispatcherServlet在web.xml中配置的servlet-name。
tips:
本文由wp2Blog导入,原文链接:http://devonios.com/delegating-filter-proxy-contextattrubute.html