How do you inject a dependency into a Spring bean?
Annotate a Setter method with the @Autowired annotation.
Use field injection.
any of these answers
Specify parameters in the constructor with an optional @Autowired annotation.