mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-04-05 17:37:53 +08:00
refactor: 重构 sa-token-temp-jwt 插件
This commit is contained in:
parent
d5deb72c9a
commit
ca64e44fc0
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1 @@
|
||||
cn.dev33.satoken.plugin.SaTokenPluginForTempForJwt
|
@ -1 +0,0 @@
|
||||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=cn.dev33.satoken.temp.jwt.SaTempForJwt
|
@ -1 +0,0 @@
|
||||
cn.dev33.satoken.temp.jwt.SaTempForJwt
|
Loading…
Reference in New Issue
Block a user