在ServletContextListener 实现类中获取
ApplicationContext app = WebApplicationContextUtils.getWebApplicationContext(event.getServletContext()); //获取spring上下文!
ApplicationContext app = WebApplicationContextUtils.getWebApplicationContext(event.getServletContext()); //获取spring上下文!