|
|
|
@@ -22,8 +22,11 @@ public class BaseMyBatisConfiguration { |
|
|
|
intercepters.setPlugins(plugins); |
|
|
|
return intercepters; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 自动 tenantId 配置 |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
protected MultiTenancy multiTenancy() { |
|
|
|
MultiTenancy multiTenancy = new MultiTenancy(); |
|
|
|
Properties properties = new Properties(); |
|
|
|
@@ -34,9 +37,12 @@ public class BaseMyBatisConfiguration { |
|
|
|
multiTenancy.setProperties(properties); |
|
|
|
return multiTenancy; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//分表配置 |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 分表配置 |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
protected ShardingSpherePlugin baseShardingSpherePlugin() { |
|
|
|
ShardingSpherePlugin shardingSpherePlugin = new ShardingSpherePlugin(); |
|
|
|
List<ShardingSphere> shardingList = new ArrayList<ShardingSphere>(); |
|
|
|
|