整合多数据源(待完善)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user