Skip to content

Spring internal configuration classes can no longer use @EventListener [SPR-17160] #19660

Closed
@spring-projects-issues

Description

@spring-projects-issues

Stéphane Nicoll opened SPR-17160 and commented

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.


Affects: 5.1 RC2

Issue Links:

Referenced from: commits 1d59e52

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions