Question: can we autowire pojo class?
Answer: The @Autowired annotation in spring automatically injects the dependent beans into the associated references of a POJO class. ... Developers can apply the @Autowired annotation to the following: @Autowired on property. @Autowired on the setter method.