mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-10-21 11:07:23 +08:00
refactor: 重构部分 sa-token-redis 插件,适配 SPI 机制
This commit is contained in:
@@ -54,13 +54,6 @@
|
||||
<version>${sa-token.version}</version>
|
||||
</dependency> -->
|
||||
|
||||
<!-- Sa-Token整合 Redis (使用jackson序列化方式) -->
|
||||
<dependency>
|
||||
<groupId>cn.dev33</groupId>
|
||||
<artifactId>sa-token-jackson</artifactId>
|
||||
<version>${sa-token.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Sa-Token整合 Redis (使用jackson序列化方式) -->
|
||||
<dependency>
|
||||
<groupId>cn.dev33</groupId>
|
||||
|
@@ -18,7 +18,7 @@ public class Test2Controller {
|
||||
public SaResult test2() {
|
||||
|
||||
StpUtil.login(30003);
|
||||
System.out.println(StpUtil.getSession().getTimeout());
|
||||
System.out.println(StpUtil.getSession().timeout());
|
||||
System.out.println(StpUtil.getStpLogic().getTokenSession(false));
|
||||
|
||||
return SaResult.ok();
|
||||
|
Reference in New Issue
Block a user