May 22nd, 2009, 09:11 AM
How auto wire works ?
Does it scan the components/ jars in the class path to inject a bean ?
I want to use a bean residing in a shared component which uses xml based configuration, can I use @autowired to inject that bean to my controller ?
May 22nd, 2009, 10:01 AM
It have a feeling you haven't read the documentation: http://www.springsource.org/documentation . You can use the linked form in HTML or download the entire PDF.
Yes, beans defined in XML can be injected through @Autowired annotations.