开发者

Servlet 3.0: where is @WebServletContextListener?

开发者 https://www.devze.com 2023-04-08 19:32 出处:网络
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).

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 @WebServletContextListen开发者_JS百科er?


The annotation is called @WebListener. And you still have to implement ServletContextListener.

0

精彩评论

暂无评论...
验证码 换一张
取 消