feat: 新增配置项 cookieAutoFillPrefix:cookie 模式是否自动填充 token 前缀

This commit is contained in:
click33
2025-04-02 00:17:56 +08:00
parent 68939084a2
commit 92f48256e9
3 changed files with 28 additions and 2 deletions

View File

@@ -139,6 +139,7 @@ public class SaTokenConfigure {
| tokenSessionCheckLogin | Boolean | true | 获取 `Token-Session` 时是否必须登录 如果配置为true会在每次获取 `Token-Session` 时校验是否登录),[详解](/use/config?id=配置项详解tokenSessionCheckLogin) |
| autoRenew | Boolean | true | 是否打开自动续签 如果此值为true框架会在每次直接或间接调用 `getLoginId()` 时进行一次过期检查与续签操作),[参考token有效期详解](/fun/token-timeout) |
| tokenPrefix | String | null | token前缀例如填写 `Bearer` 实际传参 `satoken: Bearer xxxx-xxxx-xxxx-xxxx` [参考自定义Token前缀](/up/token-prefix) |
| cookieAutoFillPrefix | Boolean | false | cookie 模式是否自动填充 token 前缀 |
| isPrint | Boolean | true | 是否在初始化配置时打印版本字符画 |
| isLog | Boolean | false | 是否打印操作日志 |
| logLevel | String | trace | 日志等级trace、debug、info、warn、error、fatal此值与 logLevelInt 联动 |