多租户模式彻底架构化,脱离实体类注解配置
This commit is contained in:
parent
d265ddec06
commit
2654e41ac5
@ -32,7 +32,7 @@ public class MyBatisFlexConfiguration {
|
||||
logger.info("{},{}ms", auditMessage.getFullSql()
|
||||
, auditMessage.getElapsedTime())
|
||||
);
|
||||
|
||||
logger.info("开始初始化mybatis-flex全局配置");
|
||||
FlexGlobalConfig globalConfig = FlexGlobalConfig.getDefaultConfig();
|
||||
//全局ID生成策略配置
|
||||
FlexGlobalConfig.KeyConfig keyConfig = new FlexGlobalConfig.KeyConfig();
|
||||
@ -56,7 +56,7 @@ public class MyBatisFlexConfiguration {
|
||||
*/
|
||||
@Bean
|
||||
public static TenantFactory tenantFactory() {
|
||||
logger.info("开始初始化租户工厂...");
|
||||
logger.info("开始初始化租户工厂");
|
||||
EbikeTenantFactory factory = new EbikeTenantFactory();
|
||||
TenantManager.setTenantFactory(factory);
|
||||
return new EbikeTenantFactory();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user