mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-09-22 20:13:34 +08:00
新增token超时更新事件监听方法
This commit is contained in:
@@ -78,7 +78,12 @@ public class MySaTokenListener implements SaTokenListener {
|
||||
public void doLogoutSession(String id) {
|
||||
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