From 705721dc6719ed268e140ed1a36db7ac3996de34 Mon Sep 17 00:00:00 2001 From: Redkale <22250530@qq.com> Date: Tue, 17 Jan 2017 13:30:31 +0800 Subject: [PATCH] --- net.html | 2 +- service.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net.html b/net.html index 455efbdcf..bcbff9284 100644 --- a/net.html +++ b/net.html @@ -132,7 +132,7 @@ // 默认缓存时间是15秒,HttpBaseServlet会将每个进入该方法的请求的响应结果缓存15秒,缓存命中时不会再进入该方法,过期会清空。 // @HttpCacheable 必须配合 @AuthIgnore 使用, 因为跟当前用户有关的请求一般不适合所有用户请求。 // 翻页查询想缓存就需要将翻页信息带进url: /user/query/page:2/size:50 。 - @HttpCacheable(timeout = 30) //有效期30秒 + @HttpCacheable(seconds = 30) //有效期30秒 @WebAction(url = "/user/userinfo/", comment = "获取指定用户ID的用户信息") @WebParam(name = "#", type = int.class, comment = "用户ID") public void userinfo(HttpRequest req, HttpResponse resp) throws IOException { diff --git a/service.html b/service.html index 6c9e2a2ce..2c1e24187 100644 --- a/service.html +++ b/service.html @@ -358,7 +358,7 @@ boolean authignore() default true; //是否鉴权,默认不鉴权, 对应@AuthIgnore - int cachetimeout() default 0; //结果缓存的秒数, 为0表示不缓存, 对应@HttpCacheable.timeout + int cacheseconds() default 0; //结果缓存的秒数, 为0表示不缓存, 对应@HttpCacheable.seconds int actionid() default 0; //操作ID值,鉴权时用到, 对应@WebAction.actionid