Question: How do you inject a dependency into a Spring bean?
- any of these answers
- Annotate a Setter method with the @Autowired annotation.
- Specify parameters in the constructor with an optional @Autowired annotation.
- Use field injection.
Answer: The correct answer of the above question is Option A:any of these answers