Commit 152c24e8b895012e552c8da054a239dd8be4d476

Authored by YunaiV
1 parent be86cdfd

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

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