spring 管理filter
首先在web.xml里面定义filter
targetBeanName是按照bean name引用spring bean多个的话逗号分割
targetFilterLifecycle控制是否执行filter的init以及destory方法
<filter>
??<filter-name>filterProxy</filter-name>
??<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
??<init-param>
???<param-name>targetBeanName</param-name>
???<param-value>loginFilter</param-value>
??</init-param>
??<init-param>
???<param-name>targetFilterLifecycle</param-name>
???<param-value>false</param-value>
??</init-param>
?</filter>
?
后面就是配置bean了