Commit 112f63bb7e95805adcd2d353c2823dbe848e0900
1 parent
152c24e8
reactor:@TenantIgnore 添加在 Controller 时,自动添加到 TenantProperties 中
Showing
1 changed file
with
2 additions
and
1 deletions
yudao-framework/yudao-spring-boot-starter-biz-tenant/src/main/java/cn/iocoder/yudao/framework/tenant/config/TenantProperties.java
| ... | ... | @@ -4,6 +4,7 @@ import lombok.Data; |
| 4 | 4 | import org.springframework.boot.context.properties.ConfigurationProperties; |
| 5 | 5 | |
| 6 | 6 | import java.util.Collections; |
| 7 | +import java.util.HashSet; | |
| 7 | 8 | import java.util.Set; |
| 8 | 9 | |
| 9 | 10 | /** |
| ... | ... | @@ -30,7 +31,7 @@ public class TenantProperties { |
| 30 | 31 | * |
| 31 | 32 | * 默认情况下,每个请求需要带上 tenant-id 的请求头。但是,部分请求是无需带上的,例如说短信回调、支付回调等 Open API! |
| 32 | 33 | */ |
| 33 | - private Set<String> ignoreUrls = Collections.emptySet(); | |
| 34 | + private Set<String> ignoreUrls = new HashSet<>(); | |
| 34 | 35 | |
| 35 | 36 | /** |
| 36 | 37 | * 需要忽略多租户的表 | ... | ... |