You Can Find Your Answer In below link which is explained in easier way http://javapapers.com/spring/dependency-injection-di-with-spring/