类 TenantContextHolder
java.lang.Object
io.springboot.plugin.goview.config.TenantContextHolder
- 作者:
- lengleng
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
-
字段详细资料
-
THREAD_LOCAL_TENANT
-
-
构造器详细资料
-
TenantContextHolder
public TenantContextHolder()
-
-
方法详细资料
-
setTenantId
TTL 设置租户ID
谨慎使用此方法,避免嵌套调用。尽量使用TenantBroker- 参数:
tenantId-
-
getTenantId
获取TTL中的租户ID- 返回:
-
clear
public void clear()
-