mirror of
https://gitee.com/dromara/sa-token.git
synced 2026-02-27 16:50:24 +08:00
feat: sa-token-sso 模块新增消息推送机制
This commit is contained in:
@@ -21,7 +21,7 @@ import com.dtflys.forest.Forest;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Http 转换器, Forest 版实现
|
||||
* Http 请求处理器, Forest 版实现
|
||||
*
|
||||
* @author click33
|
||||
* @since 1.43.0
|
||||
|
||||
@@ -17,6 +17,7 @@ package cn.dev33.satoken.plugin;
|
||||
|
||||
import cn.dev33.satoken.SaManager;
|
||||
import cn.dev33.satoken.http.SaHttpTemplateForForest;
|
||||
import com.dtflys.forest.config.ForestConfiguration;
|
||||
|
||||
/**
|
||||
* SaToken 插件安装:Http 请求处理器 - Forest 版
|
||||
@@ -28,6 +29,10 @@ public class SaTokenPluginForForest implements SaTokenPlugin {
|
||||
|
||||
@Override
|
||||
public void install() {
|
||||
// 关闭 Forest 默认日志打印
|
||||
ForestConfiguration.getDefaultConfiguration().setLogEnabled(false);
|
||||
|
||||
// 设置 Forest 作为 Http 请求处理器
|
||||
SaManager.setSaHttpTemplate(new SaHttpTemplateForForest());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user