mirror of
https://gitee.com/dromara/sa-token.git
synced 2026-02-27 16:50:24 +08:00
优化核心包代码注释 & 彩色日志打印
This commit is contained in:
@@ -9,7 +9,7 @@ import cn.dev33.satoken.context.SaHolder;
|
||||
/**
|
||||
* SaApplication 存取值测试
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-9-4
|
||||
*/
|
||||
public class SaApplicationTest {
|
||||
|
||||
@@ -10,7 +10,7 @@ import cn.dev33.satoken.config.SaTokenConfigFactory;
|
||||
/**
|
||||
* 配置类测试
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-9-4
|
||||
*/
|
||||
public class SaTokenConfigTest {
|
||||
|
||||
@@ -8,7 +8,7 @@ import cn.dev33.satoken.context.model.SaCookie;
|
||||
/**
|
||||
* SaFoxUtil 工具类测试
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-2-8 22:14:25
|
||||
*/
|
||||
public class SaCookieTest {
|
||||
|
||||
@@ -9,7 +9,7 @@ import cn.dev33.satoken.exception.SaTokenException;
|
||||
/**
|
||||
* 默认上下文测试
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-9-5
|
||||
*/
|
||||
public class SaTokenContextDefaultImplTest {
|
||||
|
||||
@@ -10,7 +10,7 @@ import cn.dev33.satoken.session.SaSession;
|
||||
/**
|
||||
* SaTokenDao 持久层 测试
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-2-9 15:39:38
|
||||
*/
|
||||
public class SaTokenDaoTest {
|
||||
|
||||
@@ -8,7 +8,7 @@ import cn.dev33.satoken.fun.IsRunFunction;
|
||||
/**
|
||||
* IsRunFunction 测试
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-2-9 16:11:10
|
||||
*/
|
||||
public class IsRunFunctionTest {
|
||||
|
||||
@@ -10,7 +10,7 @@ import cn.dev33.satoken.util.SoMap;
|
||||
/**
|
||||
* json默认实现类测试
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-9-1
|
||||
*/
|
||||
public class SaJsonTemplateDefaultImplTest {
|
||||
|
||||
@@ -8,7 +8,7 @@ import cn.dev33.satoken.secure.SaBase64Util;
|
||||
/**
|
||||
* SaBase64Util 测试
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-2-9
|
||||
*/
|
||||
public class SaBase64UtilTest {
|
||||
|
||||
@@ -10,7 +10,7 @@ import cn.dev33.satoken.secure.SaSecureUtil;
|
||||
/**
|
||||
* SaSecureUtil 加密工具类 测试
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-2-9
|
||||
*/
|
||||
public class SaSecureUtilTest {
|
||||
|
||||
@@ -11,7 +11,7 @@ import cn.dev33.satoken.session.SaSessionCustomUtil;
|
||||
/**
|
||||
* SaSession 测试
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-2-9
|
||||
*/
|
||||
public class SaSessionCustomUtilTest {
|
||||
|
||||
@@ -15,7 +15,7 @@ import cn.dev33.satoken.session.TokenSign;
|
||||
/**
|
||||
* SaSession 测试
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-2-9
|
||||
*/
|
||||
public class SaSessionTest {
|
||||
|
||||
@@ -8,7 +8,7 @@ import cn.dev33.satoken.session.TokenSign;
|
||||
/**
|
||||
* TokenSign 相关测试
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-9-4
|
||||
*/
|
||||
public class TokenSignTest {
|
||||
|
||||
@@ -9,7 +9,7 @@ import cn.dev33.satoken.util.SoMap;
|
||||
/**
|
||||
* API 接口签名测试
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-9-2
|
||||
*/
|
||||
public class SaSignTemplateTest {
|
||||
|
||||
@@ -14,7 +14,7 @@ import cn.dev33.satoken.util.SaTokenConsts;
|
||||
/**
|
||||
* Token 参数扩展
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-9-5
|
||||
*/
|
||||
public class TokenInfoTest {
|
||||
|
||||
@@ -11,7 +11,7 @@ import cn.dev33.satoken.util.SaTokenConsts;
|
||||
/**
|
||||
* 临时Token模块测试
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-9-1
|
||||
*/
|
||||
public class SaTempTest {
|
||||
|
||||
@@ -16,7 +16,7 @@ import cn.dev33.satoken.util.SaFoxUtil;
|
||||
/**
|
||||
* SaFoxUtil 工具类测试
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-2-8 22:14:25
|
||||
*/
|
||||
public class SaFoxUtilTest {
|
||||
|
||||
@@ -11,7 +11,7 @@ import cn.dev33.satoken.util.SaResult;
|
||||
/**
|
||||
* SaResult 结果集 测试
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-2-8 22:14:25
|
||||
*/
|
||||
public class SaResultTest {
|
||||
|
||||
@@ -14,7 +14,7 @@ import cn.dev33.satoken.util.SaResult;
|
||||
/**
|
||||
* 测试注解用的Controller
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-9-2
|
||||
*/
|
||||
@RestController
|
||||
|
||||
@@ -10,7 +10,7 @@ import cn.dev33.satoken.util.SaResult;
|
||||
/**
|
||||
* 测试注解用的Controller
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-9-2
|
||||
*/
|
||||
@SaCheckLogin
|
||||
|
||||
@@ -14,7 +14,7 @@ import cn.dev33.satoken.util.SaResult;
|
||||
|
||||
/**
|
||||
* 全局异常处理
|
||||
* @author kong
|
||||
* @author click33
|
||||
*
|
||||
*/
|
||||
@RestControllerAdvice
|
||||
|
||||
@@ -9,7 +9,7 @@ import cn.dev33.satoken.interceptor.SaInterceptor;
|
||||
/**
|
||||
* Sa-Token 相关配置类
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-9-2
|
||||
*/
|
||||
@Configuration
|
||||
|
||||
@@ -11,7 +11,7 @@ import cn.dev33.satoken.util.SaFoxUtil;
|
||||
/**
|
||||
* 自定义权限验证接口扩展
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
*
|
||||
*/
|
||||
@Component
|
||||
|
||||
@@ -7,7 +7,7 @@ import cn.dev33.satoken.oauth2.logic.SaOAuth2Template;
|
||||
/**
|
||||
* 自定义 Sa-OAuth2 模板方法
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-9-5
|
||||
*/
|
||||
@Component
|
||||
|
||||
@@ -7,7 +7,7 @@ import cn.dev33.satoken.sso.SaSsoTemplate;
|
||||
/**
|
||||
* 自定义 Sa-SSO 模板方法
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-9-5
|
||||
*/
|
||||
@Component
|
||||
|
||||
@@ -9,7 +9,7 @@ import cn.dev33.satoken.util.SaResult;
|
||||
/**
|
||||
* 登录测试
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
*
|
||||
*/
|
||||
@RestController
|
||||
|
||||
@@ -21,7 +21,7 @@ import cn.dev33.satoken.util.SoMap;
|
||||
/**
|
||||
* Sa-Token 登录API测试
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
*
|
||||
*/
|
||||
@SpringBootTest(classes = StartUpApplication.class)
|
||||
|
||||
@@ -12,7 +12,7 @@ import cn.dev33.satoken.util.SaResult;
|
||||
/**
|
||||
* 其它测试
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
*
|
||||
*/
|
||||
@RestController
|
||||
|
||||
@@ -27,7 +27,7 @@ import cn.dev33.satoken.util.SaResult;
|
||||
/**
|
||||
* 其它测试
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
*
|
||||
*/
|
||||
@SpringBootTest(classes = StartUpApplication.class)
|
||||
|
||||
@@ -10,7 +10,7 @@ import cn.dev33.satoken.util.SaResult;
|
||||
/**
|
||||
* 路由鉴权测试
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
*
|
||||
*/
|
||||
@RestController
|
||||
|
||||
@@ -32,7 +32,7 @@ import cn.dev33.satoken.util.SaResult;
|
||||
/**
|
||||
* C Controller 测试
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
*
|
||||
*/
|
||||
@SpringBootTest(classes = StartUpApplication.class)
|
||||
|
||||
@@ -17,7 +17,7 @@ import cn.dev33.satoken.util.SaResult;
|
||||
/**
|
||||
* Sa-Token 相关配置类
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-9-2
|
||||
*/
|
||||
@Configuration
|
||||
|
||||
@@ -10,7 +10,7 @@ import cn.dev33.satoken.util.SaResult;
|
||||
/**
|
||||
* same-token Controller
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
*
|
||||
*/
|
||||
@RestController
|
||||
|
||||
@@ -24,7 +24,7 @@ import cn.dev33.satoken.util.SaResult;
|
||||
/**
|
||||
* same-token Controller 测试
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
*
|
||||
*/
|
||||
@SpringBootTest(classes = StartUpApplication.class)
|
||||
|
||||
@@ -19,7 +19,7 @@ import cn.dev33.satoken.stp.StpUtil;
|
||||
/**
|
||||
* Sa-Token 多端登录测试
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
*
|
||||
*/
|
||||
@SpringBootTest(classes = StartUpApplication.class)
|
||||
|
||||
@@ -11,7 +11,7 @@ import cn.dev33.satoken.spring.SpringMVCUtil;
|
||||
/**
|
||||
* SpringMVCUtil 测试
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
*
|
||||
*/
|
||||
public class SpringMVCUtilTest {
|
||||
|
||||
@@ -23,7 +23,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
* Map< String, Object> 是最常用的一种Map类型,但是它写着麻烦
|
||||
* <p>所以特封装此类,继承Map,进行一些扩展,可以让Map更灵活使用
|
||||
* <p>最新:2020-12-10 新增部分构造方法
|
||||
* @author kong
|
||||
* @author click33
|
||||
*/
|
||||
public class SoMap extends LinkedHashMap<String, Object> {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user