refactor: 重构 sa-token-temp-jwt 插件

This commit is contained in:
click33 2025-02-22 18:07:30 +08:00
parent d5deb72c9a
commit ca64e44fc0
6 changed files with 39 additions and 6 deletions

View File

@ -25,6 +25,9 @@
<module>sa-token-hutool-timed-cache</module>
<module>sa-token-thymeleaf</module>
<module>sa-token-freemarker</module>
<module>sa-token-dubbo</module>
<module>sa-token-dubbo3</module>
<module>sa-token-temp-jwt</module>
<!-- SpringBoot 环境插件 -->
<module>sa-token-redis-template</module>
@ -41,10 +44,7 @@
<module>sa-token-sso</module>
<module>sa-token-oauth2</module>
<module>sa-token-quick-login</module>
<module>sa-token-temp-jwt</module>
<module>sa-token-jwt</module>
<module>sa-token-dubbo</module>
<module>sa-token-dubbo3</module>
<module>sa-token-grpc</module>
</modules>

View File

@ -19,7 +19,7 @@ import cn.dev33.satoken.SaManager;
import cn.dev33.satoken.json.SaJsonTemplateForJackson;
/**
* SaToken 插件JSON 转换器安装
* SaToken 插件安装JSON 转换器 (jackjson )
*
* @author click33
* @since 1.41.0

View File

@ -0,0 +1,34 @@
/*
* Copyright 2020-2099 sa-token.cc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.dev33.satoken.plugin;
import cn.dev33.satoken.SaManager;
import cn.dev33.satoken.temp.jwt.SaTempForJwt;
/**
* SaToken 插件安装临时 token 生成器 - Jwt
*
* @author click33
* @since 1.41.0
*/
public class SaTokenPluginForTempForJwt implements SaTokenPlugin {
@Override
public void setup() {
SaManager.setSaTemp(new SaTempForJwt());
}
}

View File

@ -0,0 +1 @@
cn.dev33.satoken.plugin.SaTokenPluginForTempForJwt

View File

@ -1 +0,0 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=cn.dev33.satoken.temp.jwt.SaTempForJwt