解决Token时间失效问题。

product
BAWEI 2 years ago
parent 3081c7a353
commit 6fb2fd4d45

@ -54,7 +54,7 @@ spring:
config:
#===================== 是否开启测试环境 =====================
TestVersion: true
TestVersion: false
#===================== 文件模板配置 =====================
fileType: local #文件存储类型(local-本地存储minio-网络存储)

@ -35,9 +35,9 @@ public class RandomUtil {
private ThreadPoolTaskExecutor threadPoolTaskExecutor;
//ID缓存有效时间 定时刷新有效期
private static long CacheTimeout = 60 * 60 * 24;
private static long CacheTimeout = 60 * 60 * 24 * 1000;
//30分钟续期一次 如果Redis被清空可以早点续期
private static long ScheduleTimeout = 60 * 30;
private static long ScheduleTimeout = 60 * 60 * 1000;
private static byte WorkerIdBitLength = 16;
//65535 参数为shot 最大值为Short.MAX_VALUE
private static int MaxWorkerIdNumberByMode = (1 << WorkerIdBitLength) -1 >Short.MAX_VALUE?Short.MAX_VALUE : (1 << WorkerIdBitLength) -1 ;

Loading…
Cancel
Save