SpringMVC应用细节总结

SpringMVC使用细节总结1.controller中获得webIoC容器?ServletContext context request.getSession().get

SpringMVC使用细节总结

1.controller中获得webIoC容器

?

ServletContext context = request.getSession().getServletContext();    WebApplicationContext ctx  = WebApplicationContextUtils.getWebApplicationContext(context); ctx.getBean("menuTreeDao");
?

?