© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
P. Späth et al.Pro Spring 6 with Kotlinhttps://doi.org/10.1007/978-1-4842-9557-1_3

3. Introducing IoC and DI in Spring

Peter Späth1  , Iuliana Cosmina2, Rob Harrop3 and Chris Schaefer4
(1)
Leipzig, Sachsen, Germany
(2)
Edinburgh, UK
(3)
Reddish, UK
(4)
Venice, FL, USA
 

Chapters 1 and 2 have introduced you to the Spring world, explaining why this framework is necessary and why dependency injection is so cool and useful. In essence, Spring was built to make dependency injection easy. This software design pattern implies that dependent components delegate the dependency resolution to an external service that will take care of injecting the dependencies. The dependent ...

Get Pro Spring 6 with Kotlin: An In-depth Guide to Using Kotlin APIs in Spring Framework 6 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.