「Spring」JSP画面にオブジェクトを取得するコード

Javaコード
<%@ page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@ page import="org.springframework.context.ApplicationContext"%>

ServletContext sobj = this.getServletConfig().getServletContext();
ApplicationContext kdf = WebApplicationContextUtils.getWebApplicationContext(sobj );

Java

Posted by arkgame