@Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) @Documented public@interface WebFilter { String description()default ""; // 该filter的描述 String displayName()default ""; // 过滤器的显示名称 WebInitParam[] initParams() default {}; // 初始化参数 String filterName()default ""; // 过滤器名称 String smallIcon()default ""; // The small-icon of the filter String largeIcon()default ""; // The large-icon of the filter String[] servletNames() default {}; // The names of the servlets to which the filter applies. String[] value() default {}; // The URL patterns to which the filter applies String[] urlPatterns() default {}; // The URL patterns to which the filter applies // The dispatcher types to which the filter applies DispatcherType[] dispatcherTypes() default {DispatcherType.REQUEST}; // Declares whether the filter supports asynchronous operation mode. booleanasyncSupported()defaultfalse;