This commit is contained in:
Redkale
2016-09-02 19:27:05 +08:00
parent f6aa646ea4
commit b1773107a1
2 changed files with 7 additions and 1 deletions

View File

@@ -70,6 +70,8 @@ public abstract class HttpBaseServlet extends HttpServlet {
String url(); String url();
String[] methods() default {};//允许方法(不区分大小写),如:GET/POST/PUT,为空表示允许所有方法 String[] methods() default {};//允许方法(不区分大小写),如:GET/POST/PUT,为空表示允许所有方法
String comment() default ""; //备注描述
} }
/** /**

View File

@@ -11,7 +11,9 @@ import java.lang.annotation.*;
* 功能同JSR 315 (java-servlet 3.0) 规范中的 @WebServlet * 功能同JSR 315 (java-servlet 3.0) 规范中的 @WebServlet
* *
* *
* <p> 详情见: http://redkale.org * <p>
* 详情见: http://redkale.org
*
* @author zhangjx * @author zhangjx
*/ */
@Documented @Documented
@@ -28,4 +30,6 @@ public @interface WebServlet {
int moduleid() default 0; int moduleid() default 0;
WebInitParam[] initParams() default {}; WebInitParam[] initParams() default {};
String comment() default ""; //备注描述
} }