- 如果是Servlet 2.4以上的容器,最好使用ContextLoaderListener 监听起启动
-AppFuse提供了一个如何使用ContextLoaderListener初始化Spring的实例。
- 在应用中使用 -WebApplicationContextUtils.getWebApplicationContext(servletContext)控制
-application context
-->
<!—通过监听器加载Application Context,旧版本的JpetStore使用ContextLoaderServlet
加载-->