From 6f4772d3abd66125b873a0f406e96820cc41b17f Mon Sep 17 00:00:00 2001 From: click33 <2393584716@qq.com> Date: Wed, 19 Mar 2025 17:12:50 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20sa-token-serializer-features=20?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=B8=8D=E6=B3=A8=E5=86=8C=E4=BB=BB=E4=BD=95?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../satoken/plugin/SaTokenPluginForSerializerFeatures.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sa-token-plugin/sa-token-serializer-features/src/main/java/cn/dev33/satoken/plugin/SaTokenPluginForSerializerFeatures.java b/sa-token-plugin/sa-token-serializer-features/src/main/java/cn/dev33/satoken/plugin/SaTokenPluginForSerializerFeatures.java index fcf73760..bc7cd8f9 100644 --- a/sa-token-plugin/sa-token-serializer-features/src/main/java/cn/dev33/satoken/plugin/SaTokenPluginForSerializerFeatures.java +++ b/sa-token-plugin/sa-token-serializer-features/src/main/java/cn/dev33/satoken/plugin/SaTokenPluginForSerializerFeatures.java @@ -15,9 +15,6 @@ */ package cn.dev33.satoken.plugin; -import cn.dev33.satoken.SaManager; -import cn.dev33.satoken.serializer.SaSerializerForBase64UseTianGan; - /** * SaToken 插件安装:自定义序列化器 * @@ -28,7 +25,8 @@ public class SaTokenPluginForSerializerFeatures implements SaTokenPlugin { @Override public void install() { - SaManager.setSaSerializerTemplate(new SaSerializerForBase64UseTianGan()); + // 默认不注册,需要开发者手动注册去选择 + // SaManager.setSaSerializerTemplate(new SaSerializerForBase64UseTianGan()); } } \ No newline at end of file