导入各种包
<%
WebApplicationContext wac = WebApplicationContextUtils.getRequiredWebApplicationContext(config.getServletContext());
DeptService deptService = (DeptService)wac.getBean("deptService");//如是注解的Service取注解
%>
导入各种包
<%
WebApplicationContext wac = WebApplicationContextUtils.getRequiredWebApplicationContext(config.getServletContext());
DeptService deptService = (DeptService)wac.getBean("deptService");//如是注解的Service取注解
%>