javax.servlet.annotation
注释类型 WebListener


@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
public @interface WebListener

This annotation is used to declare a WebListener. Any class annotated with WebListener must implement one or more of the ServletContextListener, ServletContextAttributeListener, ServletRequestListener, ServletRequestAttributeListener, HttpSessionListener, or HttpSessionAttributeListener interfaces.

从以下版本开始:
Servlet 3.0

可选元素摘要
 String value
          Description of the listener
 

value

public abstract String value
Description of the listener

默认值:
""


Copyright © 2013. All Rights Reserved.