Fancy
2024-08-20 b277bf442b58ad5084aeedf213be3f7b8b35c259
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();
    }
}