| Package | Description | 
|---|---|
| org.springframework.web.context | Contains a variant of the application context interface for web applications,
 and the ContextLoaderListener that bootstraps a root web application context. | 
| org.springframework.web.context.support | Classes supporting the  org.springframework.web.contextpackage,
 such as WebApplicationContext implementations and various utility classes. | 
| org.springframework.web.servlet | Provides servlets that integrate with the application context
 infrastructure, and the core interfaces and classes for the
 Spring web MVC framework. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | ContextLoader. configureAndRefreshWebApplicationContext(ConfigurableWebApplicationContext wac,
                                        ServletContext sc) | 
| protected void | ContextLoader. customizeContext(ServletContext sc,
                ConfigurableWebApplicationContext wac)Customize the  ConfigurableWebApplicationContextcreated by this
 ContextLoader after config locations have been supplied to the context
 but before the context is refreshed. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AbstractRefreshableWebApplicationContextAbstractRefreshableApplicationContextsubclass which implements theConfigurableWebApplicationContextinterface for web environments. | 
| class  | AnnotationConfigWebApplicationContextWebApplicationContextimplementation which accepts component classes as input — in particular@Configurationclasses, but also plain@Componentclasses as well as JSR-330 compliant classes usingjavax.injectannotations. | 
| class  | GenericWebApplicationContextSubclass of  GenericApplicationContext, suitable for web environments. | 
| class  | GroovyWebApplicationContextWebApplicationContextimplementation which takes
 its configuration from Groovy bean definition scripts and/or XML files, as understood by
 aGroovyBeanDefinitionReader. | 
| class  | StaticWebApplicationContextStatic  WebApplicationContextimplementation for testing. | 
| class  | XmlWebApplicationContextWebApplicationContextimplementation
 which takes its configuration from XML documents, understood by anXmlBeanDefinitionReader. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | FrameworkServlet. configureAndRefreshWebApplicationContext(ConfigurableWebApplicationContext wac) | 
| protected void | FrameworkServlet. postProcessWebApplicationContext(ConfigurableWebApplicationContext wac)Post-process the given WebApplicationContext before it is refreshed
 and activated as context for this servlet. |