In Spring Event handling in the ApplicationContext is provided through the ApplicationEvent class and ApplicationListener interface
In general spring has the following events
ApplicationEvent is the super class, all the above classes are extending this class, here is one example to log the spring events
Create a class which implements ApplicationListener
Create a Simple bean
Create a Test class
Current Event is org.springframework.context.event.ContextRefreshedEvent received!