当一个请求对象初始化或销毁时,将触发ServletRequestEvent事件,处理该类事件需要使用接口。
过滤器的使用主要是通过3个核心接口进行操作的,分别为Filter接口 、接口、FilterConfig接口。
在ServletRequest对象上,可能会触发两种事件,分别是ServletRequestEvent和ServletRequestAttributeEvent。
A. 对
B. 错
ServletContextListener接口的contextDetroyed()方法,是在ServletContext对象销毁时被调用。
A. 对
B. 错