com.quincy.core.ThreadLocalHolder Maven / Gradle / Ivy
The newest version!
package com.quincy.core;
import org.springframework.core.NamedThreadLocal;
public class ThreadLocalHolder {
private static ThreadLocal accsessToken = null;
public static void setAccsessToken(String token) {
accsessToken = new NamedThreadLocal("accsessToken");
accsessToken.set(token);
}
public static String getAccsessToken() {
return accsessToken==null?null:accsessToken.get();
}
}