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

Spring internal configuration classes can no longer use @EventListener

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 5.1 RC2
    • Fix Version/s: 5.1 RC3
    • Component/s: Core
    • Labels:
    • Last commented by a User:
      true

      Description

      Due to this optimization, Spring projects can no longer use @EventListener.

      Spring Boot does use it in a few places where a single component needs to listener for two event types and avoid being called for every event. We can move to ApplicationListener if necessary but it would be nice to have a strategy to narrow down the event types.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              snicoll St├ęphane Nicoll
              Last updater:
              Spring Issues Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

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