org.springframework.web.context.ContextLoaderListener 或: context org.springframework.web.context.ContextLoaderServlet 1 通过如下方法取出applicationContext实例: ApplicationContext ac=WebApplicationContextUtils.getWebApplicationContext(this.getServletContext);