zuoxiao
2 天以前 4513ef24bf9b188c2a77d6ce94f1a6b7e9ebf0e6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.dy.common.webFilter;
 
public class UserTokenContext {
    private final static ThreadLocal<String> holder = new ThreadLocal<>();
 
    public static void set(String name) {
        holder.set(name);
    }
 
    public static String get() {
        return holder.get();
    }
 
    public static void remove() {
        holder.remove();
    }
}