mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-09-18 17:48:03 +08:00
v1.30.0.RC up
This commit is contained in:
@@ -13,7 +13,7 @@ import com.pj.sso.util.AjaxJson;
|
||||
* 封装一些 sso 共用方法
|
||||
*
|
||||
* @author kong
|
||||
* @date: 2022-4-30
|
||||
* @since: 2022-4-30
|
||||
*/
|
||||
public class SsoRequestUtil {
|
||||
|
||||
|
@@ -15,7 +15,7 @@ import org.springframework.stereotype.Component;
|
||||
* <b> 此种方式有性能问题,仅做demo示例,真实项目中请更换为其它方案记录用户会话数据 </b>
|
||||
*
|
||||
* @author kong
|
||||
* @date: 2022-4-30
|
||||
* @since: 2022-4-30
|
||||
*/
|
||||
@Component
|
||||
public class MyHttpSessionHolder implements HttpSessionListener {
|
||||
|
@@ -12,7 +12,7 @@ import org.springframework.web.socket.handler.TextWebSocketHandler;
|
||||
* 处理 WebSocket 连接
|
||||
*
|
||||
* @author kong
|
||||
* @date: 2022-2-11
|
||||
* @since: 2022-2-11
|
||||
*/
|
||||
public class MyWebSocketHandler extends TextWebSocketHandler {
|
||||
|
||||
|
@@ -9,7 +9,7 @@ import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry
|
||||
* WebSocket 相关配置
|
||||
*
|
||||
* @author kong
|
||||
* @date: 2022-2-11
|
||||
* @since: 2022-2-11
|
||||
*/
|
||||
@Configuration
|
||||
@EnableWebSocket
|
||||
|
@@ -13,7 +13,7 @@ import cn.dev33.satoken.stp.StpUtil;
|
||||
* WebSocket 握手的前置拦截器
|
||||
*
|
||||
* @author kong
|
||||
* @date: 2022-2-11
|
||||
* @since: 2022-2-11
|
||||
*/
|
||||
public class WebSocketInterceptor implements HandshakeInterceptor {
|
||||
|
||||
|
Reference in New Issue
Block a user