package com.kidgrow.common.properties;
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
import lombok.Getter;
|
import lombok.Setter;
|
import java.util.ArrayList;
|
import java.util.List;
|
|
/**
|
* 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br>
|
*
|
* @Description: 多租户配置<br>
|
* @Project: <br>
|
* @CreateDate: Created in 2020/2/4 10:03 <br>
|
* @Author: <a href="4345453@kidgrow.com">liuke</a>
|
*/
|
@Setter
|
@Getter
|
@ConfigurationProperties(prefix = "kidgrow.tenant")
|
@RefreshScope
|
public class TenantProperties {
|
/**
|
* 是否开启多租户
|
*/
|
private Boolean enable = false;
|
|
/**
|
* 默认租户类型ID
|
*/
|
private String tenantid="tenant_id";
|
|
/**
|
* 配置不进行多租户隔离的表名
|
*/
|
private List<String> ignoreTables = new ArrayList<>();
|
|
|
/**
|
* 配置需要动态解析sql的表名
|
*/
|
private List<String> dynamicTables = new ArrayList<>();
|
|
/**
|
* 配置不进行多租户隔离的sql
|
* 需要配置mapper的全路径如:com.kidgrow.user.mapper.SysUserMapper.findList
|
*/
|
private List<String> ignoreSqls = new ArrayList<>();
|
}
|