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