public class RequestThreadContext extends Object
| Modifier and Type | Field and Description |
|---|---|
static ThreadLocal<UserEnt> |
localVar |
| Constructor and Description |
|---|
RequestThreadContext() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cleanLocalVar()
清理线程容器资源
|
static UserIdentityEnum |
requesterIdentity()
线程容器中获取发出请求的用户角色
|
static Long |
requesterUserId()
线程容器中获取发出请求的用户的Id
|
public static ThreadLocal<UserEnt> localVar
public static Long requesterUserId()
public static UserIdentityEnum requesterIdentity()
public static void cleanLocalVar()
Copyright © 2022. All rights reserved.