Autowiring lets Spring provide references between managed beans, so objects can collaborate without manually retrieving each other. Unlike wiring, which links beans by directly calling the methods that declare them, autowiring uses Spring’s dependency injection. section 3.0
Figure 3.1 Having two beans in the Spring context, we want to establish a relationship between them. We do this so that one object can then delegate to the other in the implementation of their responsibilities. You can do this using a wiring approach, which implies directly calling the methods that declare the beans to establish the link between them, or through auto-wiring. You use the framework’s dependency injection capabilities.

See the two ways to establish a relationship between beans: direct method calls and Spring-provided dependencies. section 3.1
A person and a parrot
Register a Person bean and a Parrot bean, then establish a relationship so the person can use the parrot. Before the relationship is configured, the person’s parrot reference is null. The example separates adding beans to the context from linking them. section 3.1
Spring can supply dependencies in several places:
- Constructor, field, or setter injection using @Autowired; constructor injection is the recommended approach, while field injection is shown for demonstration. section 4.2.1
- Parameters of methods annotated with @Bean, which Spring uses to create beans in the context. section 4.2.1

