mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-10-21 19:17:25 +08:00
feat: 支持自定义 autoRenew 逻辑
This commit is contained in:
@@ -65,6 +65,15 @@ public BiFunction<AnnotatedElement, Class<? extends Annotation> , Annotation> ge
|
||||
public BiFunction<String, String, String> spliceTwoUrl = (url1, url2) -> {
|
||||
return xxx;
|
||||
};
|
||||
|
||||
/**
|
||||
* 是否自动续期,每次续期前都会执行,可以加入动态判断逻辑
|
||||
* <p> 参数 当前 stpLogic 实例对象
|
||||
* <p> 返回 true 自动续期 false 不自动续期
|
||||
*/
|
||||
public Function<StpLogic, Boolean> autoRenew = (stpLogic) -> {
|
||||
return stpLogic.getConfigOrGlobal().getAutoRenew();
|
||||
};
|
||||
```
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user