v1.10.0 版本更新, 提供会话治理接口

This commit is contained in:
shengzhang
2021-01-09 01:24:37 +08:00
parent 2328f9d654
commit f26424537f
21 changed files with 89 additions and 36 deletions

View File

@@ -203,13 +203,12 @@ public class TestController {
}
// 测试 浏览器访问: http://localhost:8081/test/searchSession
// 测试前,请先将 is-read-cookie 配置为 false
@RequestMapping("searchSession")
public AjaxJson searchSession() {
// 测试会话治理 浏览器访问: http://localhost:8081/test/search
@RequestMapping("search")
public AjaxJson search() {
System.out.println("--------------");
Ttime t = new Ttime().start();
List<String> tokenValue = StpUtil.searchTokenValue("", 0, 10);
List<String> tokenValue = StpUtil.searchTokenValue("8feb8265f773", 0, 10);
for (String v : tokenValue) {
// SaSession session = StpUtil.getSessionBySessionId(sid);
System.out.println(v);