Tuesday, March 4, 2014

spring dependency injection

There are three type of dependency injection in spring:-

  1. Constructor Injection
  2. Setter Injection
  3. Interface Injection
If there is constructor injection, setter injection and interfeace injection in same class Constructor injection is prefered overriding others.

It there is setter injection and interface injection then setter injection is preferred over interface injection.

1 comment:

  1. YouTube contains not only comic and humorous video tutorials but also it carries learning related videos.

    Curso java

    ReplyDelete