From 5907148fabfbdbda30804c40eec1212b067a472c Mon Sep 17 00:00:00 2001 From: Trang Date: Fri, 17 Nov 2017 17:21:55 +0800 Subject: [PATCH] =?UTF-8?q?Update=20Druid=20=E5=A4=9A=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=BA=90=E6=94=AF=E6=8C=81.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/Druid 多数据源支持.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/Druid 多数据源支持.md b/docs/Druid 多数据源支持.md index 36f9527..713f45b 100644 --- a/docs/Druid 多数据源支持.md +++ b/docs/Druid 多数据源支持.md @@ -1,6 +1,7 @@ # Druid 多数据源支持 1.0.2 版本新增了支持多数据源的 **DruidDataSource2**,可以将 `spring.datasource` 和 `spring.datasource.druid` 开头的配置注入到数据源,解决各数据源之间的相同配置问题。 + 1.1.2 版本改进了多数据源的注册方式,由 Starter 自动发现配置并注册到 Spring Context,用户只需在配置文件中声明即可。 @@ -77,4 +78,4 @@ spring: ``` ## 演示 -将 [druid-spring-boot-example](https://github.com/drtrang/druid-spring-boot/blob/master/druid-spring-boot-example/druid-spring-boot-mybatis-example/src/main/resources/application.yml) 的 `spring.profiles.active` 配置改为 `dynamic` 即可。 \ No newline at end of file +将 [druid-spring-boot-example](https://github.com/drtrang/druid-spring-boot/blob/master/druid-spring-boot-example/druid-spring-boot-mybatis-example/src/main/resources/application.yml) 的 `spring.profiles.active` 配置改为 `dynamic` 即可。