Listener
Learn Listener (Servlet Integration, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes Listener is a servlet component that gets a callback when something happens in the web application, such as startup, shutdown, a session being created or a request arriving. Interfaces : ServletContextListener , HttpSessionListener , ServletRequestListener and the matching attribute listeners. Registration : use @WebListener , web.xml , or in Spring Boot a ServletListenerRegistrationBean or a bean that implements the interface.