mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2025-12-12 04:42:49 +00:00
更新租户ID设置的注释,提升代码可读性
This commit is contained in:
parent
761dbf0343
commit
ed87ac3bff
@ -196,7 +196,7 @@ public class SaTokenConfig implements WebMvcConfigurer {
|
||||
SaHolder.getResponse().setStatus(HttpStatus.OK.value());
|
||||
});
|
||||
|
||||
// 每次请求前,获取请求头中的租户ID,放入当前线程上下文
|
||||
// 设置当前线程上下文的租户ID
|
||||
String tenantId = SaHolder.getRequest().getHeader(CommonConstant.TENANT_ID);
|
||||
TenantContext.setTenant(tenantId);
|
||||
log.info("===【TenantContext 线程设置】=== 请求路径: {}, 租户ID: {}", SaHolder.getRequest().getRequestPath(), tenantId);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user