Fancy
2024-07-09 f05c95868bb6f0b8b7f3e493992570d96dabdd2f
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();
    }
}