The different types of events related to listeners are:
ContextRefreshedEvent – This gets called when the context is refreshed or initialized.
RequestHandledEvent – This gets called when the web context is handling a request.
ContextClosedEvent – This gets called when the context gets closed.