title: When to go for @Configuration and @Component in a spring application?
body: <p>We all know that both these annotations are used to create beans. But if @Component was already there to create bean then what was the need of @Configuration (which use @Bean) to create bean. Please help in understand this and in which scenario we need to use the annotation.</p>