Filter、Listener
Filter
写法
@WebFilter("/a/*")
public class TestFilter1 implements Filter {
}
//或者在web.xml文件中配置
<filter>
//过滤器名称
<display-name>TestFilter1</display-name>
<filter-name>TestFilter1</filter-name>
//过滤器全类名
<filter-class>com.qf.filter.TestFilter1</filter-class>
</filter>
//过滤器与资源间的映射
<filter-mapping>
//过滤器类名
<filter-name>TestFilter1</filter-name>
//需要被过滤的资