A dependency injection container manages objects so they can work with framework features. In Spring, these managed objects are called beans, and the Spring context is the IoC container. section 2.5
Spring beans can be added to the context in three ways:
- Use @Bean for control over object creation, including third-party classes or advanced configurations. section 2.5
- Use stereotype annotations such as @Component for most application classes, with less boilerplate. section 2.5
- Register a bean programmatically with registerBean(). section 2.5

