mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-09-23 04:23:36 +08:00
新增token超时更新事件监听方法
This commit is contained in:
@@ -79,6 +79,11 @@ public class MySaTokenListener implements SaTokenListener {
|
||||
System.out.println("---------- 自定义侦听器实现 doLogoutSession");
|
||||
}
|
||||
|
||||
/** 每次更新token超时时间时触发 */
|
||||
@Override
|
||||
public void doRenewTimeout(String tokenValue, Object loginId, long timeout) {
|
||||
System.out.println("帐号[" + loginId + "]更新超时时间成功!");
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user