What do you mean by Annotation-based container configuration?
Instead of using XML to describe a bean wiring, we can do the configuration in the component class itself by using annotations on the relevant class, method, or field declaration. The annotation based container configuration acts as an alternative to XML setups.e.g:
@Configuration
public class MyConfig
{
@Bean
public MyUserDemo myUserDemo(){
return new MyUserDemoImpl();
}
}
Instead of using XML to describe a bean wiring, we can do the configuration in the component class itself by using annotations on the relevant class, method, or field declaration. The annotation based container configuration acts as an alternative to XML setups.e.g:
@Configuration
public class MyConfig
{
@Bean
public MyUserDemo myUserDemo(){
return new MyUserDemoImpl();
}
}