67,550
社区成员




@Controller
public class TestContextController {
@Autowired
private ApplicationContext applicationContext;
}
WebApplicationContext webApplicationContext = WebApplicationContextUtils.getWebApplicationContext(servletContext,"org.springframework.web.servlet.FrameworkServlet.CONTEXT.vdc_ui" );
TestA service=(TestA)webApplicationContext.getBean("testA");