Interview questions
Question 186 of 254
FreeWhat is the Spring application event system, and what problem does it solve?
Application Events
Spring's event system implements the publish-subscribe pattern inside the IoC container: any bean can publish an event via ApplicationEventPublisher without knowing or caring who (if anyone) is listening, and any number of listener beans can react to that event type independently — decoupling the component that triggers something from the component(s) that need to react to it, avoiding direct method-call coupling between unrelated parts of the application.
Intermediate5 min

