Commit 6a230e72 by fengshuonan

简化多数据源配置

parent 225b0f43
......@@ -30,7 +30,7 @@ import java.util.HashMap;
@Configuration
@ConditionalOnProperty(prefix = "guns.muti-datasource", name = "open", havingValue = "true")
@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 {
@Bean
......
......@@ -18,7 +18,7 @@ public class BizTest extends BaseJunit {
@Test
public void test() {
//testService.testGuns();
testService.testGuns();
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