Annotation Interface Configuration
Annotation indicating that a class is a source of bean definitions. Those bean definitions are registered during
BeanFactoryPostProcessors invocation. The factory post processor dedicated for Configyration classes is
ConfigurationClassPostProcessor
Beans under a configuration class are created by adding methods and annotating them with annotation @Bean
.
Configuration bean must be of Singleton scope and is registered before the beans defined inside of it.
Usage Example:
@Configuration
public class MyConfiguration {
}
- Since:
- 1.0
- Author:
- Blyzhnytsia Team
- See Also: