WebApplicationContextUtils.getWebApplicationContext(servletContext) to obtain the Spring application context, then context.getBean(beanName) to locate the bean itself. Throws ApplicationConfigurationException if named bean is not present in application context
@author Phil Zoio
| |