ApplicationContext ac1 = WebApplicationContextUtils.getRequiredWebApplicationContext(ServletActionContext.getServletContext());
TopicAction result = (TopicAction)ac1.getBean("TopicAction");
spring 获取 bean
时间: 2025-01-08 23:41:38
ApplicationContext ac1 = WebApplicationContextUtils.getRequiredWebApplicationContext(ServletActionContext.getServletContext());
TopicAction result = (TopicAction)ac1.getBean("TopicAction");
spring 获取 bean