![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
扬子居
走自己的路,让别人说去。
展开
-
DelegatingFilterProxy
DelegatingFilterProxy的原理及使用DelegatingFilterProxy就是一个对于servlet filter的代理,用这个类的好处主要是通过Spring容器来管理servlet filter的生命周期,还有就是如果filter中需要一些Spring容器的实例,可以通过spring直接注入,另外读取一些配置文件这些便利的操作都可以通过Spring来配置实现。转载 2014-06-23 22:13:45 · 798 阅读 · 0 评论 -
ContextLoaderListener
2 作用:在启动Web容器时,自动装配Spring applicationContext.xml的配置信息。因为它实现了ServletContextListener这个接口,在web.xml配置这个监听器,启动容器时,就会默认执行它实现的方法。在ContextLoaderListener中关联了ContextLoader这个类,所以整个加载配置过程由ContextLoader来完成prin转载 2014-06-25 16:58:42 · 694 阅读 · 0 评论