Reputation: 192
This must be possible but I can't work out how or see it in the docs.
I need to reference a bean which has been created via an annotation @Service and context:component-scan, within a spring xml config file.
How is this achieved?
Cheers
Upvotes: 5
Views: 2606
Reputation: 597382
@Service("myService")
<property name="myProperty" ref="myService"/>
Upvotes: 8