零、快速入门使用 定义一个类,实现Filter接口 override方法 配置拦截路径 web.xml 注解 一、配置 配置过滤器一般使用注解或者xml 1、webxml 与servlet配置类似 <filter> <filter-name>过滤器名</filter-name> <filter-class>过滤