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