Pro Spring 3 pp 53-112 | Cite as

Introducing IoC and DI in Spring

  • Clarence Ho


In Chapter 1, we covered the basic principles of Inversion of Control (IoC) and Dependency Injection (DI). Practically, DI is a specialized form of IoC, although you will often find that the two terms are used interchangeably. In this chapter, we take a much more detailed look at IoC and DI, formalizing the relationship between the two concepts and looking in great detail at how Spring fits into the picture.


Configuration File Public Class Setter Injection Dependent Object Public Void 


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Clarence Ho and Rob Harrop 2012

Authors and Affiliations

  • Clarence Ho

There are no affiliations available

Personalised recommendations