注解鉴权增加LoginKey属性,用于多账号模式下的注解鉴权支持

This commit is contained in:
shengzhang
2021-05-04 00:26:44 +08:00
parent 76dd333c9b
commit 479b40b92b
14 changed files with 171 additions and 214 deletions

View File

@@ -71,8 +71,10 @@ public class TestJwtController {
// 测试 浏览器访问: http://localhost:8081/test/test
@RequestMapping("test")
public AjaxJson test() {
StpUtil.getTokenSession().logout();
StpUtil.logoutByLoginId(10001);
System.out.println();
System.out.println("--------------进入请求--------------");
StpUtil.setLoginId(10001);
System.out.println(StpUtil.getTokenInfo().getTokenValue());
return AjaxJson.getSuccess();
}