O'Reilly logo

Mastering Software Testing with JUnit 5 by Boni García

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Spring in a nutshell

The core technology of the Spring Framework is known as Inversion of Control (IoC), which is the process of instantiating objects outside the class in which these objects are actually used. These objects are known as beans or components in the Spring jargon and are created as singleton objects by default. The entity in charge of the creation of beans is known as the Spring IoC container. This is achieved by Dependency Injection (DI), which is the process of providing dependencies of one object instead of constructing them itself.

IoC and DI are often used interchangeably. Nevertheless, as depicted in the paragraph earlier, these concepts are not exactly the same (IoC is achieved through DI).

As depicted in the next part ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required