WebApplicationContext wac = WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext());wac.getBean("*****"); //**** is a name of bean.