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