当前位置:网站首页>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();
}
}
边栏推荐
- 公钥\私人 ssh避password登陆
- 刨析《C语言》【进阶】付费知识【一】
- 【唯一】的“万字配图“ | 讲透【链式存储结构】是什么?
- Modify the system time of Px4 flight control
- 736. LISP syntax parsing: DFS simulation questions
- AcWing 346. Solution to the problem of water splashing festival in the corridor (deduction formula, minimum spanning tree)
- C language [23] classic interview questions [Part 2]
- 新工作感悟~辞旧迎新~
- Box stretch and pull (left-right mode)
- C语言关于链表的代码看不懂?一篇文章让你拿捏二级指针并深入理解函数参数列表中传参的多种形式
猜你喜欢
随机推荐
AcWing 1140. Shortest network (minimum spanning tree)
Related programming problems of string
String to date object
AcWing 904. 虫洞 题解(spfa求负环)
AcWing 904. Wormhole solution (SPFA for negative rings)
How did partydao turn a tweet into a $200million product Dao in one year
According to the analysis of the Internet industry in 2022, how to choose a suitable position?
Clickhouse fields are grouped and aggregated, and SQL is queried according to the granularity of any time period
Set up [redis in centos7.x]
设置Wordpress伪静态连接(无宝塔)
JS ES5也可以創建常量?
Get to know MySQL for the first time
爬虫实战(六):爬笔趣阁小说
New job insights ~ leave the old and welcome the new~
2022/0524/bookstrap
AcWing 1148. 秘密的牛奶运输 题解(最小生成树)
百度飞将BMN时序动作定位框架 | 数据准备与训练指南 (上)
Telnet,SSH1,SSH2,Telnet/SSL,Rlogin,Serial,TAPI,RAW
Domestic images of various languages, software and systems. It is enough to collect this warehouse: Thanks mirror
ROS學習(23)action通信機制