Chapter 2. Defining Beans and Using Dependency Injection
In this chapter, we will cover the following recipes:
- Defining a bean explicitly with @Bean
- Defining a bean implicitly with @Component
- Using a bean via dependency injection with @Autowired
- Using a bean directly
- Listing all beans
- Using multiple configuration classes