Results 1 to 2 of 2

Thread: @Autowired

  1. #1
    Join Date
    May 2009
    Posts
    9

    Default @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. #2
    Join Date
    Jan 2006
    Location
    Seattle, Washington
    Posts
    467

    Default

    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
  •