What is the use of @bean in spring?
Answer / Himanshu Dwivedi
@Bean is a Spring Framework annotation used to declare that a method produces a bean (object) that should be managed by the Spring container. The container uses the information provided by the annotated methods for creating and configuring beans.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain the concept of dispatcher servlet.
What are beans in spring?
What does mapping findforward () method return?
How does dependency injection work and why would you need it?
What is use of @component in spring?
How to enable mvc annotations in spring?
What is the scope of spring beans?
Why is dao used?
What are the ways to insert the collection concept in spring?
What is dhcp pool?
List in brief the new features spring 3.0 has to offer.
How many types of advice are there in spring?