Question - What do you mean by Annotation-based container configuration?
Answer -
Instead of using XML to describe a bean wiring, the developer moves the configuration into the component class itself by using annotations on the relevant class, method, or field declaration. It acts as an alternative to XML setups. For example:
- @Configuration
- public class AnnotationConfig
- {
- @Bean
- public MyDemo myDemo()
- { return new MyDemoImpll(); }
- }