mirror of
https://gitee.com/dromara/sa-token.git
synced 2026-02-27 16:50:24 +08:00
优化多账号模式下集成jwt插件的方案
This commit is contained in:
@@ -167,8 +167,7 @@ sa-token-jwt 插件默认只为 `StpUtil` 注入 `StpLogicJwtFoxXxx` 实现,
|
||||
*/
|
||||
@Autowired
|
||||
public void setUserStpLogic() {
|
||||
StpUserUtil.stpLogic = new StpLogicJwtForSimple(StpUserUtil.TYPE);
|
||||
SaManager.putStpLogic(StpUserUtil.stpLogic);
|
||||
StpUserUtil.setStpLogic(new StpLogicJwtForSimple(StpUserUtil.TYPE));
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user