2006. 10. 30. 19:21
ServletContext에서 ApplicationContext를 얻는 방법 프레임워크2006. 10. 30. 19:21
ApplicationContext ctx = WebApplicationContextUtils.
getWebApplicationContext(servletContext);
Bar bar = (Bar) ctx.getBean("bar");
ApplicationContext ctx = WebApplicationContextUtils.
getWebApplicationContext(servletContext);
Bar bar = (Bar) ctx.getBean("bar");