mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-10-21 02:57:23 +08:00
feat: SaLoginParameter 支持配置 isShare
This commit is contained in:
@@ -26,7 +26,10 @@ public class TestController {
|
||||
// 测试登录 ---- http://localhost:8081/test/login
|
||||
@RequestMapping("login")
|
||||
public SaResult login(@RequestParam(defaultValue = "10001") long id) {
|
||||
StpUtil.login(id, new SaLoginParameter().setIsConcurrent(true));
|
||||
StpUtil.login(id, new SaLoginParameter()
|
||||
.setIsConcurrent(true)
|
||||
.setIsShare(false)
|
||||
);
|
||||
return SaResult.ok("登录成功");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user