mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-08-23 22:11:29 +08:00
优化多账号模式下集成jwt插件的方案
This commit is contained in:
parent
09c7372513
commit
c6c0c69732
@ -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));
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user