WebApplicationContext wac = WebApplicationContextUtils.getRequiredWebApplicationContext(session.getServletContext());SessionService ss = wac.getBean(SessionService.class);SessionService是自定义的service bean