You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Spring internal configuration classes can no longer use @EventListener [SPR-17160] #19660
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.
As reported by John Blum via email, we missed one case: the user class traversal for the generated configuration subclasses. This has been fixed for RC3 now.
Activity
spring-projects-issues commentedon Aug 10, 2018
Stéphane Nicoll commented
For the record, Spring Boot
masterno longer uses@EventListener.spring-projects-issues commentedon Aug 14, 2018
Juergen Hoeller commented
It seems that we can proceed with the original change for the time being. We may still re-evaluate towards GA.
spring-projects-issues commentedon Aug 18, 2018
Juergen Hoeller commented
As reported by John Blum via email, we missed one case: the user class traversal for the generated configuration subclasses. This has been fixed for RC3 now.