优化多账号模式下集成jwt插件的方案

This commit is contained in:
click33 2022-08-08 17:47:00 +08:00
parent 09c7372513
commit c6c0c69732

View File

@ -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));
}
```