整合多数据源(待完善)

This commit is contained in:
xiangwbs
2018-05-31 23:07:16 +08:00
parent 1e30189238
commit bd3f19162a
9 changed files with 190 additions and 197 deletions
@@ -2,6 +2,7 @@ package com.xwbing;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;
/**
* 项目名称: boot-module-demo
@@ -11,6 +12,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
*/
//@EnableRabbit
@SpringBootApplication
@EnableTransactionManagement
//@Configuration 定义为配置类,相当于xml文件中的<beans></beans>
//@ComponentScan 组件扫描
//@EnableAutoConfiguration 借助@Import的帮助,将所有符合自动配置条件的bean定义加载到IoC容器
@@ -59,6 +59,10 @@ spring:
cache:
channel:
size: 1
#mybatis
mybatis:
mapper-locations:
config-location:
#log
logging:
config: classpath:log4j2.xml