mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-10-25 18:19:02 +08:00
is-write-header 参数相关文档
This commit is contained in:
@@ -37,6 +37,7 @@ StpUtil.login(10001, new SaLoginModel()
|
||||
.setTimeout(60 * 60 * 24 * 7) // 指定此次登录token的有效期, 单位:秒 (如未指定,自动取全局配置的 timeout 值)
|
||||
.setToken("xxxx-xxxx-xxxx-xxxx") // 预定此次登录生成的Token
|
||||
.setExtra("name", "zhangsan") // Token挂载的扩展参数 (此方法只有在集成jwt插件时才会生效)
|
||||
.setIsWriteHeader(false) // 是否在登录后将 Token 写入到响应头
|
||||
);
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user