본문 바로가기

말랑말랑한 이야기

[Spring] JSP에서 Spring context 획득

WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext());