-
May 22nd, 2009, 09:11 AM
#1
@Autowired
How auto wire works ?
Does it scan the components/ jars in the class path to inject a bean ?
For instance,
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
#2
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules