@Configuration
}-annotated classes, but also plain {@link org.springframework.stereotype.Component @Component
} classes andJSR-330 compliant classes using {@code javax.inject} annotations. Allows forregistering classes one by one (specifying class names as config location) as well as for classpath scanning (specifying base packages as config location). Note: In case of multiple {@code @Configuration} classes, later {@code @Bean}definitions will override ones defined in earlier loaded files. This can be leveraged to deliberately override certain bean definitions via an extra Configuration class. @author Phillip Webb @see #register(Class) @see #scan(String) @see EmbeddedWebApplicationContext @see AnnotationConfigWebApplicationContext
|
|
|
|