ApplicationContext ac1 = WebApplicationContextUtils.getRequiredWebApplicationContext(ServletActionContext.getServletContext()); TopicAction result = (TopicAction)ac1.getBean("TopicAction");
spring 获取 bean,布布扣,bubuko.com
spring 获取 bean
原文:http://www.cnblogs.com/lilefordream/p/3796403.html