This tutorial highlights the advantage of using @EventListener in Spring 4.2 for listening to the events. One of the most important feature added to the Spring 4.2 is support for annotation driven event listeners. Now you can enable/mark a method with annotation @EventListener. also read: Spring Tutorials ContextRefreshedEvent And ApplicationListener In Spring @EventListener is the …