67,513
社区成员
发帖
与我相关
我的任务
分享
@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");