I am trying to follow a Servlet 3.0 tutorial which refers to @WebServletContextListener
. However, I cannot find such an annotation in my javaee-web-api-6.0.jar
dependency (I am using maven).
So, where is @WebServletContextListener
?
The annotation is called @WebListener
. And you still have to implement ServletContextListener
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With