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