Learning the basic concepts of the Spring Framework
The Spring Framework's backbone is the IoC container that is responsible for a bean's life cycle. In the Spring world, a Java object can be a bean if it is instantiated, assembled, and managed by the IoC container. You create n-number of beans, aka objects, for your application. A bean may have dependencies, that is, requiring other objects to work. The IoC container is responsible for injecting the object's dependencies when it creates that bean. In the Spring context, IoC is also known as DI.
In the following sections, we'll cover the following core Spring concepts:
- IoC containers
- Defining beans
- Configuring beans using Java
- How to code DI
- Writing code for AOP
Note:
You can refer to the Spring documentation (https://docs.spring.io/spring-framework/docs/current/spring-framework-reference/) for more information about the Spring Framework.
Let's get started!