xyz.erupt.security.tl.RequestBodyTL Maven / Gradle / Ivy
package xyz.erupt.security.tl;
import xyz.erupt.security.model.ReqBody;
/**
* @author YuePeng
* date 2021/4/6 16:50
*/
public class RequestBodyTL {
private static final ThreadLocal threadLocal = new ThreadLocal<>();
public static ReqBody get() {
return threadLocal.get();
}
public static void set(ReqBody reqBody) {
threadLocal.set(reqBody);
}
public static void remove() {
threadLocal.remove();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy