refactor: 全局配置 is-share 默认值改为 false

This commit is contained in:
click33
2025-03-11 02:09:05 +08:00
parent 33c3b90abb
commit 307c6a0619
28 changed files with 35 additions and 41 deletions
@@ -41,7 +41,7 @@ public class TestController {
// 测试 浏览器访问: http://localhost:8081/test/test
@RequestMapping("test")
@SaCheckSign(appid = "#{appid}", verifyParams = {"name", "age"})
@SaCheckSign(verifyParams = {"name", "age"})
public SaResult test() {
System.out.println("------------进来了 " + SaFoxUtil.formatDate(new Date()));
// StpUtil.getLoginId();
@@ -13,17 +13,11 @@ sa-token:
# 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录)
is-concurrent: true
# 在多人登录同一账号时,是否共用一个 token (为 true 时所有登录共用一个 token, 为 false 时每次登录新建一个 token)
is-share: true
is-share: false
# token 风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik)
token-style: uuid
# 是否输出操作日志
is-log: true
sign:
# token签名密钥
secret-key: abc123
sign-many:
10001:
secret-key: 123456
spring:
# redis配置
@@ -35,7 +29,7 @@ spring:
# Redis服务器连接端口
port: 6379
# Redis服务器连接密码(默认为空)
password:
password:
# 连接超时时间
timeout: 10s
lettuce: