I need to add a listener to my Spring Boot application, in web.xml it looks like
org.springframework.web.contex
Write your own listener class which extends from RequestContextListener
and register it via annotation. Something like this:
@WebListener
public class MyRequestContextListener extends RequestContextListener {
}
I created this class and that solved my issue.
@Configuration
@WebListener
public class MyRequestContextListener extends RequestContextListener {
}