From eb9f1652809815a13b05018712fa9a6bb5d9648f Mon Sep 17 00:00:00 2001
From: whycxzp <perryhsu@163.com>
Date: 星期三, 06 四月 2022 11:43:02 +0800
Subject: [PATCH] 更新HttpSession强转类型

---
 src/main/java/com/whyc/config/WebSocketConfig.java |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/whyc/config/WebSocketConfig.java b/src/main/java/com/whyc/config/WebSocketConfig.java
index 372c229..8bf2007 100644
--- a/src/main/java/com/whyc/config/WebSocketConfig.java
+++ b/src/main/java/com/whyc/config/WebSocketConfig.java
@@ -17,7 +17,8 @@
 
     @Override
     public void modifyHandshake(ServerEndpointConfig sec, HandshakeRequest request, HandshakeResponse response) {
-        HttpSession httpSession = (ShiroHttpSession) request.getHttpSession();
+        //HttpSession httpSession = (ShiroHttpSession) request.getHttpSession();
+        HttpSession httpSession = (HttpSession)request.getHttpSession();
         sec.getUserProperties().put("httpSession",httpSession);
         super.modifyHandshake(sec, request, response);
     }

--
Gitblit v1.9.1