Hi Guys,
I have been working with Spring for a while now. I have felt my way around rather than learned via certification. One thing that I have not figured out yet is this scenario.
I have an endpoint 'GlenEndpoint' annotated with @Endpoint.
'GlenEndpoint' has an Autowired service 'IrisService'. IrisService is itself annotated with @Service.
This works well as long IrisService instantiates any dependencies as POJO's in the old fashioned way. Eg,
However, if I attempt to autowire the
AmountOwedUtil object, the application can not start up correctly, complaining that there is no qualifying bean of this type. This happens even though I have annotated the
AmountOwedUtil class with @Service. I have also made sure that all relevant packages are covered by component scanning. I should mention that AmountOwedUtil is in a separate package to both IrisService and GlenEndpoint.
I know that this is likely something very simple, but so far it has me banging my head against the wall
Please help,
G