mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-09-19 01:58:05 +08:00
整理pr
This commit is contained in:
@@ -241,20 +241,6 @@ public class TestController {
|
||||
@RequestMapping("test")
|
||||
public AjaxJson test() {
|
||||
System.out.println("进来了");
|
||||
// System.out.println(StpUtil.getTokenInfo());
|
||||
StpUtil.setLoginId(10001);
|
||||
String ss = StpUtil.getSession().get("name", () -> {
|
||||
System.out.println("-=------进入方法");
|
||||
return "zhangsan";
|
||||
});
|
||||
ss = StpUtil.getSession().get("name", () -> {
|
||||
System.out.println("-=------进入方法2");
|
||||
return "zhangsan2";
|
||||
});
|
||||
|
||||
StpUtil.getSession().delete("name");
|
||||
System.out.println(ss);
|
||||
|
||||
return AjaxJson.getSuccess("访问成功");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user