过滤器Filter 是一个老话题了,前辈们总结的也都挺好.在此 我只借花献佛.做个记录. 方便以后查看.
具体地址:
http://www.itzhai.com/java-web-notes-servlet-filters-in-the-filter-writing-the-introduction-and-use-of-filters.html#read-more
http://zhangjunhd.blog.51cto.com/113473/20629/
http://tianweili.github.io/blog/2015/01/26/java-filter/
http://www.mossle.com/docs/jsp/html/jsp-ch-07.html
http://www.cnblogs.com/lanxuezaipiao/archive/2012/08/05/2623547.html
http://www.runoob.com/servlet/servlet-writing-filters.html
这几篇文章是非常不错的总结性文章,对filter的理解和使用有很大帮助。 请仔细研读。