优化自动生成token的算法

This commit is contained in:
shengzhang
2021-01-09 19:34:43 +08:00
parent 6a677ca779
commit 2d3a262e2f
2 changed files with 8 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ spring:
# token名称 (同时也是cookie名称)
token-name: satoken
# token有效期单位s 默认30天, -1代表永不过期
timeout: -1
timeout: 2592000
# token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒
activity-timeout: -1
# 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
@@ -19,7 +19,6 @@ spring:
token-style: uuid
# redis配置
redis:
# Redis数据库索引默认为0