Spring / Spring interview questions
What are the types of Dependency Injection Spring supports?
There are 2 kinds of Dependency Injection Spring supports.
Setter Injection: Setter-based DI accomplished by calling setter methods on the beans after invoking a no-argument constructor or no-argument static factory method to instantiate your bean.
Constructor Injection: Constructor-based DI that works invoking a constructor with a number of arguments, each representing a dependency.
More Related questions...