当前位置:网站首页>Threadlocalutils (tool class IV)
Threadlocalutils (tool class IV)
2022-07-07 01:56:00 【Novice Zhang~】
package com.menglar.soap.item.common.utils;
public class ThreadLocalUtils {
private final static ThreadLocal<Object> userThreadLocal = new ThreadLocal<>();
/** * Set data to the current thread */
public static void set(Object o){
userThreadLocal.set(o);
}
/** * Get data in the thread * @return */
public static Object get( ){
return userThreadLocal.get();
}
}
边栏推荐
猜你喜欢

LeetCode. Sword finger offer 62 The last remaining number in the circle

AcWing 345. 牛站 题解(floyd的性质、倍增)

Reptile practice (VI): novel of climbing pen interesting Pavilion

js如何快速创建一个长度为 n 的数组

New job insights ~ leave the old and welcome the new~

2022/0524/bookstrap
![Yiwen takes you into [memory leak]](/img/a8/bd1a57ef3bde8910eff2a5f68296df.png)
Yiwen takes you into [memory leak]

Basic introduction and use of dvajs

ROS learning (26) dynamic parameter configuration

The GPG keys listed for the "MySQL 8.0 community server" repository are already ins
随机推荐
Related programming problems of string
Telnet,SSH1,SSH2,Telnet/SSL,Rlogin,Serial,TAPI,RAW
AcWing 346. 走廊泼水节 题解(推公式、最小生成树)
grep查找进程时,忽略grep进程本身
LeetCode. Sword finger offer 62 The last remaining number in the circle
各种语言,软件,系统的国内镜像,收藏这一个仓库就够了: Thanks-Mirror
MySQL execution process and sequence
ROS learning (22) TF transformation
AcWing 361. Sightseeing cow problem solution (SPFA seeking positive ring)
Recognition of C language array
CISP-PTE实操练习讲解(二)
Reptile practice (VI): novel of climbing pen interesting Pavilion
Compile command line terminal swift
IDEA常用的快捷键
Ds-5/rvds4.0 variable initialization error
WCF基金会
MySQL's most basic select statement
curl 命令
The GPG keys listed for the "MySQL 8.0 community server" repository are already ins
centos8安裝mysql報錯:The GPG keys listed for the “MySQL 8.0 Community Server“ repository are already ins