Updated documentation to point out that AnnotationConfigWebApplicationContext can accept both fully-qualified class names as well as base packages to the contextConfigLocation init-param.

This commit is contained in:
Chris Beams
2010-01-28 03:42:42 +00:00
parent d13f0c8052
commit 1cda8cb6fa
2 changed files with 5 additions and 3 deletions

View File

@@ -43,7 +43,8 @@ import org.springframework.context.annotation.ScopeMetadataResolver;
* <p>Unlike {@link XmlWebApplicationContext}, no default configuration class locations
* are assumed. Rather, it is a requirement to set the "contextConfigLocation"
* context-param for ContextLoader and/or "contextConfigLocation" init-param for
* FrameworkServlet.
* FrameworkServlet. The param-value may contain both fully-qualified
* class names and base packages to scan for components.
*
* <p>Note: In case of multiple {@literal @Configuration} classes, later {@literal @Bean}
* definitions will override ones defined in earlier loaded files. This can be leveraged