WebApplicationContextUtils.getRequiredWebApplicationContext(pageContext.getServletContext()).getBean("Manager"); pageContext.getServletContext()是jsp页面传过来的。