This commit is contained in:
Redkale
2017-05-23 11:04:54 +08:00
parent a59bf92ee7
commit 96beb9cef4
2 changed files with 4 additions and 5 deletions

View File

@@ -42,12 +42,11 @@ public @interface HttpMapping {
int cacheseconds() default 0; int cacheseconds() default 0;
/** /**
* 是否鉴权,默认鉴权 <br> * 是否鉴权,默认需要鉴权 <br>
* 如&#64;WebServlet.auth = false 该值忽略
* *
* @return boolean * @return boolean
*/ */
boolean auth() default false; boolean auth() default true;
/** /**
* 允许方法(不区分大小写),如:GET/POST/PUT,为空表示允许所有方法 * 允许方法(不区分大小写),如:GET/POST/PUT,为空表示允许所有方法

View File

@@ -47,11 +47,11 @@ public @interface RestMapping {
String comment() default ""; String comment() default "";
/** /**
* 是否鉴权,默认鉴权, 对应&#64;HttpMapping.auth * 是否鉴权,默认需要鉴权, 对应&#64;HttpMapping.auth
* *
* @return boolean * @return boolean
*/ */
boolean auth() default false; boolean auth() default true;
/** /**
* 操作ID值鉴权时用到, 对应&#64;HttpMapping.actionid * 操作ID值鉴权时用到, 对应&#64;HttpMapping.actionid