feat: sa-token-sso 模块新增消息推送机制

This commit is contained in:
click33
2025-04-30 03:55:42 +08:00
parent b53eac9269
commit 95cc77a8bc
26 changed files with 1210 additions and 608 deletions

View File

@@ -21,7 +21,7 @@ import com.dtflys.forest.Forest;
import java.util.Map;
/**
* Http 转换器, Forest 版实现
* Http 请求处理器, Forest 版实现
*
* @author click33
* @since 1.43.0

View File

@@ -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());
}