ApplicationContext ac1 = WebApplicationContextUtils.getRequiredWebApplicationContext(ServletActionContext.getServletContext());
TopicAction result = (TopicAction)ac1.getBean("TopicAction");
spring 获取 bean
时间: 2024-10-27 16:31:46
ApplicationContext ac1 = WebApplicationContextUtils.getRequiredWebApplicationContext(ServletActionContext.getServletContext());
TopicAction result = (TopicAction)ac1.getBean("TopicAction");
spring 获取 bean