I have a class (Class ABC) that\'s instantiated by calling the constructor. Class ABC in turn has a helper class (Class XYZ) injected using auto-wired.
Ours is a Sp
In short, yes, ABC is not getting injected with XYZ because Spring is not managing ABC. Spring can't configure objects that it doesn't know about.
You could manage ABC by annotating it with @Service
or @Component
. Note that in order for Spring to pick up on these annotations, Spring must have auto-scanning turned on: