类 TenantConfig

java.lang.Object
plus.hiver.common.config.tenant.TenantConfig

@Configuration public class TenantConfig extends Object
租户自动配置类 - 根据配置决定是否启用租户功能

尊重知识产权,CV 请保留版权,海文科技 https://hiver.cc 出品,不允许非法使用,后果自负

作者:
Yazhi Li
  • 构造器详细资料

    • TenantConfig

      public TenantConfig()
  • 方法详细资料

    • tenantIdentifierResolver

      @Bean @ConditionalOnProperty(name="hiver.tenant.enabled", havingValue="true") public TenantIdentifierResolver tenantIdentifierResolver(TenantProperties tenantProperties)
      租户标识解析器 - 仅在租户功能启用时注册
    • tenantHandler

      @Bean @ConditionalOnProperty(name="hiver.tenant.enabled", havingValue="true") public TenantHandler tenantHandler(TenantProperties tenantProperties)
      租户处理器 - 仅在租户功能启用时注册 用于处理租户相关的业务逻辑