(1)
(2)ServletContextListener是ServletContext的监听者,当ServletContext发生变化的时候会触发相应的动作。如contextInitialized与contextDestroyed而ContextLoaderListener实现了ServletContext从而实现容器的初始化与销毁。
(3)参考《一》ContextLoader对ioc初始化,以及设置双亲ioc容器
相关文章:
(1)
(2)ServletContextListener是ServletContext的监听者,当ServletContext发生变化的时候会触发相应的动作。如contextInitialized与contextDestroyed而ContextLoaderListener实现了ServletContext从而实现容器的初始化与销毁。
(3)参考《一》ContextLoader对ioc初始化,以及设置双亲ioc容器
相关文章: