特点  过滤浏览器请求的java程序

    处于浏览器和被请求的资源之间

    可以有多个过滤器组成过滤链  有配置的顺序决定先后顺序

    常用语设置请求和响应的字符集

API  doFilter()执行过滤  FilterChain  过滤链的容器

              doFilter  传递给下一个过滤器  

    init()  加载配置

    destroy()  释放资源

配置  2.0  web.xml  <filter>  <filter-name><filter-class><filter-mapping>

    3.0  兼容2.0并且可以用注解  

相关文章:

  • 2022-12-23
  • 2021-04-22
  • 2021-11-19
  • 2021-11-19
  • 2021-10-27
  • 2021-07-23
猜你喜欢
  • 2021-09-03
  • 2022-01-13
  • 2022-01-07
  • 2022-12-23
  • 2021-12-23
  • 2021-09-22
  • 2021-05-17
相关资源
相似解决方案