获取Spring容器Bean

WebApplicationContext wac = ContextLoader.getCurrentWebApplicationContext();
        ManageResolver mr = (ManageResolver) wac.getBean("manageResolver");
原文地址:https://www.cnblogs.com/cocoat/p/5149294.html