Spring / Spring Interview questions II
Explain @Configuration annotation in Spring.
The @Configuration annotation indicates that a class declares one or more @Bean methods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime.
@Configuration public class AppConfig { @Bean(name="exampleService") public ExampleClass service() { ... } }
More Related questions...