mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-10-26 10:39:02 +08:00
feat: 为插件的安装与卸载提供钩子函数支持
This commit is contained in:
@@ -29,7 +29,7 @@ import cn.dev33.satoken.strategy.SaStrategy;
|
||||
public class SaTokenPluginForFastjson implements SaTokenPlugin {
|
||||
|
||||
@Override
|
||||
public void setup() {
|
||||
public void install() {
|
||||
|
||||
// 设置JSON转换器:Fastjson 版
|
||||
SaManager.setSaJsonTemplate(new SaJsonTemplateForFastjson());
|
||||
|
||||
Reference in New Issue
Block a user