What are the different types of dependency injection supported in Spring?

What are the different types of dependency injection supported in Spring?

Ninja Asked on 17th September 2018 in Spring.
Add Comment
1 Answer(s)
Best answer

Spring framework supports two types of Dependency Injection

• Constructor Injection – Dependencies are provided by constructor parameters
• Setter Injection – Dependencies are assigned through setter methods (Java Beans properties) after object instantiation using a no argument constructor

Ninja Answered on 17th September 2018.
Add Comment