adspace


What is the use of @bean in spring?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you inject java collection in spring?

518


What is difference between @controller and @restcontroller in spring?

556


What is lazy class?

490