mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-04-05 17:37:53 +08:00
新增token超时更新事件监听方法
This commit is contained in:
parent
e3465870ee
commit
b2a925811c
@ -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 + "]更新超时时间成功!");
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user