From d3f50dfb38219b086f0428dd1077570fe5400a6c Mon Sep 17 00:00:00 2001 From: xuxueli <931591021@qq.com> Date: Wed, 21 Nov 2018 18:05:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=B0=E4=BD=8F=E5=AF=86=E7=A0=81=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E4=BC=98=E5=8C=96=EF=BC=8C=E9=80=89=E4=B8=AD=E6=97=B6?= =?UTF-8?q?=E6=B0=B8=E4=B9=85=E8=AE=B0=E4=BD=8F=EF=BC=9B=E9=9D=9E=E9=80=89?= =?UTF-8?q?=E4=B8=AD=E6=97=B6=E5=85=B3=E9=97=AD=E6=B5=8F=E8=A7=88=E5=99=A8?= =?UTF-8?q?=E5=8D=B3=E7=99=BB=E5=87=BA=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/XXL-JOB官方文档.md | 2 +- .../src/main/java/com/xxl/job/admin/core/util/CookieUtil.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/XXL-JOB官方文档.md b/doc/XXL-JOB官方文档.md index 667e5d5b..a2e35a20 100644 --- a/doc/XXL-JOB官方文档.md +++ b/doc/XXL-JOB官方文档.md @@ -1390,7 +1390,7 @@ Tips: 历史版本(V1.3.x)目前已经Release至稳定版本, 进入维护阶段 ### 6.24 版本 v2.0.2 Release Notes[迭代中] - 1、调度中心告警邮件发送组件改为 “spring-boot-starter-mail”; - 2、任务告警逻辑调整,改为通过扫描失败日志方式触发。一方面精确扫描失败任务,降低扫描范围;另一方面取消内存队列,降低线程内存消耗; - +- 3、记住密码功能优化,选中时永久记住;非选中时关闭浏览器即登出; ### TODO LIST - 1、任务分片路由:分片采用一致性Hash算法计算出尽量稳定的分片顺序,即使注册机器存在波动也不会引起分批分片顺序大的波动;目前采用IP自然排序,可以满足需求,待定; diff --git a/xxl-job-admin/src/main/java/com/xxl/job/admin/core/util/CookieUtil.java b/xxl-job-admin/src/main/java/com/xxl/job/admin/core/util/CookieUtil.java index 31f30ee3..34a898f3 100644 --- a/xxl-job-admin/src/main/java/com/xxl/job/admin/core/util/CookieUtil.java +++ b/xxl-job-admin/src/main/java/com/xxl/job/admin/core/util/CookieUtil.java @@ -12,7 +12,7 @@ import javax.servlet.http.HttpServletResponse; public class CookieUtil { // 默认缓存时间,单位/秒, 2H - private static final int COOKIE_MAX_AGE = 60 * 60 * 2; + private static final int COOKIE_MAX_AGE = Integer.MAX_VALUE; // 保存路径,根路径 private static final String COOKIE_PATH = "/";