Commit 6a230e72 by fengshuonan

简化多数据源配置

parent 225b0f43
...@@ -30,7 +30,7 @@ import java.util.HashMap; ...@@ -30,7 +30,7 @@ import java.util.HashMap;
@Configuration @Configuration
@ConditionalOnProperty(prefix = "guns.muti-datasource", name = "open", havingValue = "true") @ConditionalOnProperty(prefix = "guns.muti-datasource", name = "open", havingValue = "true")
@EnableTransactionManagement(order = 2) @EnableTransactionManagement(order = 2)
@MapperScan(basePackages = {"com.stylefeng.guns.modular.*.dao"}) @MapperScan(basePackages = {"com.stylefeng.guns.modular.*.dao","com.stylefeng.guns.multi.mapper"})
public class MultiDataSourceConfig { public class MultiDataSourceConfig {
@Bean @Bean
......
...@@ -18,7 +18,7 @@ public class BizTest extends BaseJunit { ...@@ -18,7 +18,7 @@ public class BizTest extends BaseJunit {
@Test @Test
public void test() { public void test() {
//testService.testGuns(); testService.testGuns();
testService.testBiz(); testService.testBiz();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment