I would like to inject a dependency into a ServletContextListener. However, my approach is not working. I can see that Spring is calling my setter method, but l
ServletContextListener
As mentioned before the ServletContextListener is created by the server and so it is not managed by spring.
If you wish to be notified of the ServletContext, you can implement the interface:
org.springframework.web.context.ServletContextAware