1
Spring is a Java framework that uses a container to create and manage the different components of an application. The container (often called the Spring application context) connects the different components in an application using the dependency injection (DI) design pattern. DI allows you to use an object in a dependent class, without creating a new instance of it within the dependent class.