mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-09-19 01:58:05 +08:00
优化核心包代码注释 & 彩色日志打印
This commit is contained in:
@@ -16,7 +16,7 @@ import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* 跨域过滤器
|
||||
* @author kong
|
||||
* @author click33
|
||||
*/
|
||||
@Component
|
||||
@Order(-200)
|
||||
|
@@ -13,7 +13,7 @@ import cn.dev33.satoken.util.SaResult;
|
||||
/**
|
||||
* 前后台分离架构下集成SSO所需的代码 (SSO-Server端)
|
||||
* <p>(注:如果不需要前后端分离架构下集成SSO,可删除此包下所有代码)</p>
|
||||
* @author kong
|
||||
* @author click33
|
||||
*
|
||||
*/
|
||||
@RestController
|
||||
|
@@ -7,7 +7,7 @@ import cn.dev33.satoken.util.SaResult;
|
||||
|
||||
/**
|
||||
* 全局异常处理
|
||||
* @author kong
|
||||
* @author click33
|
||||
*
|
||||
*/
|
||||
@RestControllerAdvice
|
||||
|
@@ -14,7 +14,7 @@ import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
/**
|
||||
* Sa-Token-SSO Server端 Controller
|
||||
* @author kong
|
||||
* @author click33
|
||||
*
|
||||
*/
|
||||
@RestController
|
||||
|
@@ -5,7 +5,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
/**
|
||||
* SSO模式一,Client端 Demo
|
||||
* @author kong
|
||||
* @author click33
|
||||
*
|
||||
*/
|
||||
@SpringBootApplication
|
||||
|
@@ -10,7 +10,7 @@ import cn.dev33.satoken.util.SaResult;
|
||||
|
||||
/**
|
||||
* Sa-Token-SSO Client端 Controller
|
||||
* @author kong
|
||||
* @author click33
|
||||
*/
|
||||
@RestController
|
||||
public class SsoClientController {
|
||||
|
@@ -16,7 +16,7 @@ import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* 跨域过滤器
|
||||
* @author kong
|
||||
* @author click33
|
||||
*/
|
||||
@Component
|
||||
@Order(-200)
|
||||
|
@@ -12,7 +12,7 @@ import cn.dev33.satoken.util.SaResult;
|
||||
/**
|
||||
* 前后台分离架构下集成SSO所需的代码 (SSO-Client端)
|
||||
* <p>(注:如果不需要前后端分离架构下集成SSO,可删除此包下所有代码)</p>
|
||||
* @author kong
|
||||
* @author click33
|
||||
*
|
||||
*/
|
||||
@RestController
|
||||
|
@@ -10,7 +10,7 @@ import cn.dev33.satoken.util.SaResult;
|
||||
|
||||
/**
|
||||
* Sa-Token-SSO Client端 Controller
|
||||
* @author kong
|
||||
* @author click33
|
||||
*/
|
||||
@RestController
|
||||
public class SsoClientController {
|
||||
|
@@ -17,7 +17,7 @@ import com.pj.sso.util.MyHttpSessionHolder;
|
||||
|
||||
/**
|
||||
* SSO Client端 Controller
|
||||
* @author kong
|
||||
* @author click33
|
||||
*/
|
||||
@RestController
|
||||
public class SsoClientController {
|
||||
|
@@ -12,7 +12,7 @@ import com.pj.sso.util.AjaxJson;
|
||||
/**
|
||||
* 封装一些 sso 共用方法
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-4-30
|
||||
*/
|
||||
public class SsoRequestUtil {
|
||||
|
@@ -14,7 +14,7 @@ import org.springframework.stereotype.Component;
|
||||
*
|
||||
* <b> 此种方式有性能问题,仅做demo示例,真实项目中请更换为其它方案记录用户会话数据 </b>
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-4-30
|
||||
*/
|
||||
@Component
|
||||
|
@@ -16,7 +16,7 @@ import java.util.Map;
|
||||
|
||||
/**
|
||||
* Sa-Token-SSO Client端 Controller
|
||||
* @author kong
|
||||
* @author click33
|
||||
*/
|
||||
@RestController
|
||||
public class SsoClientController {
|
||||
|
Reference in New Issue
Block a user