读书人

SpringMVC应用细节总结

发布时间: 2012-08-26 16:48:06 作者: rapoo

SpringMVC使用细节总结

1.controller中获得webIoC容器

?

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

?

读书人网 >VC/MFC

热点推荐