reactor:@TenantIgnore 添加在 Controller 时,自动添加到 TenantProperties 中

This commit is contained in:
YunaiV 2025-05-05 09:34:02 +08:00
parent be86cdfd51
commit 152c24e8b8
1 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,7 @@
package cn.iocoder.yudao.framework.tenant.core.aop;
import cn.iocoder.yudao.framework.tenant.config.TenantProperties;
import java.lang.annotation.*;
/**
@ -9,6 +11,9 @@ import java.lang.annotation.*;
* 1Redis 场景因为是基于 Key 实现多租户的能力所以忽略没有意义不像 DB 是一个 column 实现的
* 2MQ 场景有点难以抉择目前可以通过 Consumer 手动在消费的方法上添加 @TenantIgnore 进行忽略
*
* 特殊
* 1如果添加到 Controller 类上则该 URL 自动添加到 {@link TenantProperties#getIgnoreUrls()}
*
* @author 芋道源码
*/
@Target({ElementType.METHOD})