你好, 你是不是想通过servletcontext获得注入的manager进行相关操作!ApplicationContext app = WebApplicationContextUtils.getWebApplicationContext(event.getServletContext()); //获取spring上下文! xxx xx=(xxx)app.getBean("注入时的名称"); //获取到bean了