web.xml配置ApplicationContext自动创建并加载的方式有两种:
1.1、利用ServletContextListener实现:
1.2、利用load-on-startup Servlet实现:
本文介绍了在web.xml中配置ApplicationContext的两种方式:一是通过实现ServletContextListener接口;二是使用load-on-startup参数的Servlet实现。
web.xml配置ApplicationContext自动创建并加载的方式有两种:
1.1、利用ServletContextListener实现:
1.2、利用load-on-startup Servlet实现:

被折叠的 条评论
为什么被折叠?