© Iuliana Cosmina, Rob Harrop, Chris Schaefer, and Clarence Ho 2017
Iuliana Cosmina, Rob Harrop, Chris Schaefer and Clarence HoPro Spring 5https://doi.org/10.1007/978-1-4842-2808-1_3

3. Introducing IoC and DI in Spring

Iuliana Cosmina, Rob Harrop2, Chris Schaefer3 and Clarence Ho4
(1)
Sibiu, Sibiu, Romania
(2)
Reddish, UK
(3)
Venice, Florida, USA
(4)
Hong Kong, China
 
In Chapter 2, we covered the basic principles of inversion of control. Practically, dependency injection is a specialized form of IoC, although you will often find that the two terms are used interchangeably. In this chapter, we give you 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. ...

Get Pro Spring 5: An In-Depth Guide to the Spring Framework and Its Tools now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.