mirror of
https://gitee.com/dromara/sa-token.git
synced 2026-02-27 16:50:24 +08:00
修复 sa-token-dao-redis-fastjson 插件 session.getModel 无法反序列化实体类的问题。
This commit is contained in:
17
sa-token-doc/start/new-version.md
Normal file
17
sa-token-doc/start/new-version.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# Sa-Token 最新版本
|
||||
|
||||
在线文档:[https://sa-token.dev33.cn/](https://sa-token.dev33.cn/)
|
||||
|
||||
---
|
||||
|
||||
正式版最新版本:
|
||||
``` xml
|
||||
<!-- Sa-Token 权限认证 -->
|
||||
<dependency>
|
||||
<groupId>cn.dev33</groupId>
|
||||
<artifactId>sa-token-spring-boot-starter</artifactId>
|
||||
<version>1.31.0</version>
|
||||
</dependency>
|
||||
```
|
||||
|
||||
|
||||
@@ -140,10 +140,10 @@ session.logout();
|
||||
``` java
|
||||
@PostMapping("/resetPoints")
|
||||
public void reset(HttpSession session) {
|
||||
// 在HttpSession上写入一个值
|
||||
// 在 HttpSession 上写入一个值
|
||||
session.setAttribute("name", 66);
|
||||
// 在SaSession进行取值
|
||||
System.out.println(StpUtil.getSession().getAttribute("name")); // 输出null
|
||||
// 在 SaSession 进行取值
|
||||
System.out.println(StpUtil.getSession().get("name")); // 输出null
|
||||
}
|
||||
```
|
||||
**要点:**
|
||||
|
||||
Reference in New Issue
Block a user