spring 获取 bean

ApplicationContext ac1 = WebApplicationContextUtils.getRequiredWebApplicationContext(ServletActionContext.getServletContext());
TopicAction result = (TopicAction)ac1.getBean("TopicAction");

posted on 2014-06-19 13:55  李乐已存在  阅读(209)  评论(0编辑  收藏  举报

AmazingCounters.com