Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-11548

MVC handler method detection should ignore scopedTarget.x in favor of corresponding proxy bean

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 4.0.2
    • Fix Version/s: 4.0.3
    • Component/s: Core
    • Last commented by a User:
      true

      Description

      According to SPR-7120 I would expect that scoped targets are not autowire candidates and therefore would not cause problems with autowiring using @Autowired. But if I define a @Bean @Lazy @Scope(proxyMode=INTERFACES) all the @Autowired sites for beans of that type blow up (2 beans of the same type are found: x and scopedTarget.x).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              david_syer Dave Syer
              Last updater:
              Spring Issues Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 24 weeks, 2 days ago