SpringMVC使用细节总结
1.controller中获得webIoC容器
?
ServletContext context = request.getSession().getServletContext(); WebApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(context); ctx.getBean("menuTreeDao");??
发布时间: 2012-08-26 16:48:06 作者: rapoo
SpringMVC使用细节总结
1.controller中获得webIoC容器
?
ServletContext context = request.getSession().getServletContext(); WebApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(context); ctx.getBean("menuTreeDao");??