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 ...

Get Mastering Software Testing with JUnit 5 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.