jsp中调用Spring bean

<%@ page import="org.springframework.web.context.support.WebApplicationContextUtils" %>
<%@ page import="org.springframework.web.context.WebApplicationContext" %>
<%
    WebApplicationContext wac = WebApplicationContextUtils.
        getRequiredWebApplicationContext(this.getServletContext());
%>

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享