过滤器

一,过滤器生命周期是过滤器(类)执行完了 ①初始化init(),②dofilter(),③自毁函数.

二,过滤器类别

①REQUEST 用户直接访问页面时调用

②FORWARD,   request.getRequestDispatcher("url").forward(arg0, arg1);时调用

③INCLUDE  request.getRequestDispatcher("url").include(arg0, arg1)调用

④ERROR  error code时调用

⑤异步过滤,不常用 不想记

原文地址:https://www.cnblogs.com/wkt-gut/p/7827903.html