mirror of
https://gitee.com/dromara/sa-token.git
synced 2026-02-27 16:50:24 +08:00
refactor: sa-token-serializer-features 默认不注册任何实现类
This commit is contained in:
@@ -15,9 +15,6 @@
|
|||||||
*/
|
*/
|
||||||
package cn.dev33.satoken.plugin;
|
package cn.dev33.satoken.plugin;
|
||||||
|
|
||||||
import cn.dev33.satoken.SaManager;
|
|
||||||
import cn.dev33.satoken.serializer.SaSerializerForBase64UseTianGan;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SaToken 插件安装:自定义序列化器
|
* SaToken 插件安装:自定义序列化器
|
||||||
*
|
*
|
||||||
@@ -28,7 +25,8 @@ public class SaTokenPluginForSerializerFeatures implements SaTokenPlugin {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void install() {
|
public void install() {
|
||||||
SaManager.setSaSerializerTemplate(new SaSerializerForBase64UseTianGan());
|
// 默认不注册,需要开发者手动注册去选择
|
||||||
|
// SaManager.setSaSerializerTemplate(new SaSerializerForBase64UseTianGan());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user