All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xyz.erupt.security.tl.RequestBodyTL Maven / Gradle / Ivy

There is a newer version: 1.12.17
Show newest version
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