| 类 | 说明 |
|---|---|
| SaSession |
Session Model,会话作用域的读取值对象
在一次会话范围内: 存值、取值
|
| SaSessionCustomUtil |
自定义 Session 工具类
样例:
// 在一处代码写入数据
SaSession session = SaSessionCustomUtil.getSessionById("role-" + 1001);
session.set("count", 1);
// 在另一处代码获取数据
SaSession session = SaSessionCustomUtil.getSessionById("role-" + 1001);
int count = session.getInt("count");
System.out.println("count=" + count);
|
| TokenSign |
Token 签名 Model
挂在到 SaSession 上的 Token 签名
|
Copyright © 2022. All Rights Reserved.