spring 获取 WebApplicationContext

WebApplicationContext web = WebApplicationContextUtils.getWebApplicationContext(sc);
        BlockingQueue<LogMessageVO> msgQueue = (BlockingQueue<LogMessageVO>) web.getBean("msgQueue");

猜你喜欢

转载自wangqiaowqo.iteye.com/blog/1978315
今日推荐