This commit is contained in:
dute7liang
2023-12-24 01:20:00 +08:00
parent c083cb9763
commit b3002937e4
6 changed files with 16 additions and 30 deletions

View File

@@ -59,6 +59,8 @@ user:
# Spring配置
spring:
main:
allow-circular-references: true
application:
name: ${ruoyi.name}
# 资源信息
@@ -98,11 +100,11 @@ spring:
sa-token:
# token名称 (同时也是cookie名称)
token-name: Authorization
# token有效期 设为天 (必定过期) 单位: 秒
timeout: 86400
# token有效期 设为30天 (必定过期) 单位: 秒
timeout: 2592000
# 多端不同 token 有效期 可查看 LoginHelper.loginByDevice 方法自定义
# token最低活跃时间 (指定时间无操作就过期) 单位: 秒
active-timeout: 1800
# token最低活跃时间 (指定时间无操作就过期) 单位: 秒 86400
active-timeout: 2592000
# 允许动态设置 token 有效期
dynamic-active-timeout: true
# 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)