mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-06-28 04:35:16 +08:00
refactor: 修复文档与注释细节点错误。
This commit is contained in:
parent
edbd63f81b
commit
760cac764b
@ -21,7 +21,7 @@ import java.util.Map;
|
||||
* Http 请求处理器
|
||||
*
|
||||
* @author click33
|
||||
* @since 1.42.0
|
||||
* @since 1.43.0
|
||||
*/
|
||||
public interface SaHttpTemplate {
|
||||
|
||||
|
@ -24,7 +24,7 @@ import java.util.Map;
|
||||
* Http 请求处理器,默认实现类
|
||||
*
|
||||
* @author click33
|
||||
* @since 1.42.0
|
||||
* @since 1.43.0
|
||||
*/
|
||||
public class SaHttpTemplateDefaultImpl implements SaHttpTemplate {
|
||||
|
||||
|
@ -67,7 +67,7 @@ implementation 'org.apache.commons:commons-pool2'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
|
||||
|
||||
// Sa-Token 插件:整合 Forest 请求工具 (模式三需要通过 http 请求推送消息)
|
||||
implementation 'cn.dev33:sa-token-forest:1.5.26'
|
||||
implementation 'cn.dev33:sa-token-forest:${sa.top.version}'
|
||||
```
|
||||
<!---------------------------- tabs:end ---------------------------->
|
||||
|
||||
|
@ -96,6 +96,13 @@ public class MySaTokenListener implements SaTokenListener {
|
||||
public void doRenewTimeout(String tokenValue, Object loginId, long timeout) {
|
||||
System.out.println("---------- 自定义侦听器实现 doRenewTimeout");
|
||||
}
|
||||
|
||||
/** 每次Token续期时触发 */
|
||||
@Override
|
||||
public void doRenewTimeout(String loginType, Object loginId, String tokenValue, long timeout) {
|
||||
System.out.println("---------- 自定义侦听器实现 doRenewTimeout");
|
||||
}
|
||||
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user