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