Selaa lähdekoodia

web请求监听器

魏熙美 5 vuotta sitten
vanhempi
commit
8fd8199fc8

+ 4
- 0
foyo-service/src/main/java/com/huiju/foyo/filter/FoyoFilter.java Näytä tiedosto

@@ -10,6 +10,10 @@ import javax.servlet.http.HttpServletRequest;
10 10
 import javax.servlet.http.HttpServletResponse;
11 11
 import java.io.IOException;
12 12
 
13
+/**
14
+ * 过滤器
15
+ * @author weiximei
16
+ */
13 17
 @Component
14 18
 public class FoyoFilter implements Filter {
15 19
 

+ 5
- 0
foyo-service/src/main/java/com/huiju/foyo/session/UserControl.java Näytä tiedosto

@@ -62,6 +62,11 @@ public class UserControl {
62 62
         SessionLoad.removeUser();
63 63
     }
64 64
 
65
+    /**
66
+     *
67
+     * 获取当前 Request
68
+     *
69
+     */
65 70
     private static HttpSession getSession() {
66 71
         HttpSession session = ((ServletRequestAttributes)RequestContextHolder.currentRequestAttributes()).getRequest().getSession();
67 72
         return session;