获取Spring容器Bean

WebApplicationContext wac = ContextLoader.getCurrentWebApplicationContext();
        ManageResolver mr = (ManageResolver) wac.getBean("manageResolver");

 

posted @ 2016-01-21 18:49  旋转的梦  阅读(159)  评论(0编辑  收藏  举报