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:
RequestContextListener
@WebListener public class MyRequestContextListener extends RequestContextListener { }