What are the different types of bean injections in spring?



What are the different types of bean injections in spring?..

Answer / Narendar Singh

There are three main types of Bean Injection in Spring: Constructor Injection, Setter Injection (also known as Setter-based autowiring), and Field Injection.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

Which server does spring boot use? : Spring Boot

1 Answers  


Why spring is lightweight in java?

1 Answers  


Why is spring boot used? : Spring Boot

1 Answers  


What is dirtiescontext?

1 Answers  


Why is loose coupling important?

1 Answers  


Is jwt an oauth?

1 Answers  


Can we extend pojo class?

1 Answers  


What is the default scope of spring?

1 Answers  


How does dao work? : Spring Boot

1 Answers  


Why do we use @qualifier?

1 Answers  


Why do we use spring mvc?

1 Answers  


Is spring bin thread-safe?

1 Answers  


Categories