Spring 메모에 Session 감청기 솔루션을 주입할 수 없음

1397 단어 spring 메모
 1 public class DefaultSessionListener implements HttpSessionListener {
2
3 public void sessionCreated(HttpSessionEvent arg0) {
4
5   ApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(arg0.getSession().getServletContext());
6    IMemberService memberService = (IMemberService) ctx.getBean("memberService"); // ,
7
8 }
9
10 public void sessionDestroyed(HttpSessionEvent se) {
11 }
12 }

좋은 웹페이지 즐겨찾기