Browse Source

dynamic 注入了两回 mmp

NorthLan 7 years ago
parent
commit
e079092689

+ 2 - 2
zen-orm/src/main/kotlin/com/gxzc/zen/orm/config/MybatisPlusFactoryConfig.kt

@@ -74,13 +74,13 @@ class MybatisPlusFactoryConfig {
     @Bean
     @Primary
     @ConditionalOnProperty(prefix = "orm", name = ["multi-datasource-enable"], havingValue = "true", matchIfMissing = true)
-    fun dynamic(dataSource: DynamicMultipleDataSource): MybatisSqlSessionFactoryBean {
+    fun dynamicDSBean(dataSource: DynamicMultipleDataSource): MybatisSqlSessionFactoryBean {
         return setFactoryBean(dataSource)
     }
 
     @Bean
     @ConditionalOnProperty(prefix = "orm", name = ["multi-datasource-enable"], havingValue = "false", matchIfMissing = true)
-    fun single(@Qualifier(DSKey.DSKEY_SYS) dataSource: DataSource): MybatisSqlSessionFactoryBean {
+    fun singleDSBean(@Qualifier(DSKey.DSKEY_SYS) dataSource: DataSource): MybatisSqlSessionFactoryBean {
         return setFactoryBean(dataSource)
     }