adspace


How many ways can you make beans in spring?

Answer Posted / Sukhwinder Singh

There are multiple ways to create beans in Spring Framework, including: 1) Declaring beans in XML configuration files, 2) Annotating classes with @Component, @Service, @Repository, or @Controller, and 3) Using Java-based Configuration.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

556


How can you inject java collection in spring?

518


What is lazy class?

490