Contextrefreshedevent,applicationcontext initialization or update is triggered, the refresh () method in the Configurableapplicationcontext interface is invoked to trigger
The start () method in the Contextstartedevent,,configurableapplicationcontext interface is invoked to trigger
The Stop () method in the Contextstoppededevent,,configurableapplicationcontext interface is invoked to trigger
This event is triggered when Contextclosedevent,appliactioncontext is closed, and all container-managed singleton beans are destroyed.
Requesthandledevent, this event is triggered when an HTTP request ends
If a bean implements the Applicationlistener interface, when a applicationevent is released, it iterates through all the listeners, and for each listener, it can actually get the listener event, but whether or not it is handled is determined by the event listener. If you want to process, use the Onapplicationevent () method to handle the listener
Custom listener events require the Applicationevent interface, ApplicationContext use the Publishevent () method to publish the event.
Different types of events in the spring framework