How many ways can you make beans in spring?



How many ways can you make beans in spring?..

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

More Spring Framework Interview Questions

What are object/relational mapping integration module?

1 Answers  


What is true about beanpostprocessor?

1 Answers  


What is a beanfactorypostprocessor and what is it used for?

1 Answers  


What is servlet in spring?

1 Answers  


What is the use of @transactional annotation in spring?

1 Answers  


What is dataaccessexception?

1 Answers  


What is the application context in spring?

1 Answers  


What is spring dto?

1 Answers  


In how many ways can dependency injection be done?

1 Answers  


What are the different modes of autowiring?

1 Answers  


What are the layers in spring framework?

1 Answers  


Why is dao used? : Spring Boot

1 Answers  


Categories