Announcement Announcement Module
Collapse
No announcement yet.
@Autowired Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • @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 ?

  • #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.

    Comment

    Working...
    X