mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-09-20 10:37:57 +08:00
优化核心包代码注释 & 彩色日志打印
This commit is contained in:
@@ -7,7 +7,7 @@ import cn.dev33.satoken.SaManager;
|
||||
|
||||
/**
|
||||
* Sa-Token 整合 WebSocket 鉴权示例
|
||||
* @author kong
|
||||
* @author click33
|
||||
*
|
||||
*/
|
||||
@SpringBootApplication
|
||||
|
@@ -8,7 +8,7 @@ import cn.dev33.satoken.util.SaResult;
|
||||
|
||||
/**
|
||||
* 登录测试
|
||||
* @author kong
|
||||
* @author click33
|
||||
*
|
||||
*/
|
||||
@RestController
|
||||
|
@@ -11,7 +11,7 @@ import org.springframework.web.socket.handler.TextWebSocketHandler;
|
||||
/**
|
||||
* 处理 WebSocket 连接
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-2-11
|
||||
*/
|
||||
public class MyWebSocketHandler extends TextWebSocketHandler {
|
||||
|
@@ -8,7 +8,7 @@ import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry
|
||||
/**
|
||||
* WebSocket 相关配置
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-2-11
|
||||
*/
|
||||
@Configuration
|
||||
|
@@ -12,7 +12,7 @@ import cn.dev33.satoken.stp.StpUtil;
|
||||
/**
|
||||
* WebSocket 握手的前置拦截器
|
||||
*
|
||||
* @author kong
|
||||
* @author click33
|
||||
* @since: 2022-2-11
|
||||
*/
|
||||
public class WebSocketInterceptor implements HandshakeInterceptor {
|
||||
|
Reference in New Issue
Block a user