From 1015cbd616897ebca659d304c6afe4897eb07226 Mon Sep 17 00:00:00 2001 From: lihengming <89921218@qq.com> Date: Mon, 24 Jul 2017 00:38:31 +0800 Subject: [PATCH] update > document for V1.1.2 --- druid-spring-boot-starter/README.md | 6 +++--- druid-spring-boot-starter/README_EN.md | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/druid-spring-boot-starter/README.md b/druid-spring-boot-starter/README.md index 5f02693ced..fa7036c961 100644 --- a/druid-spring-boot-starter/README.md +++ b/druid-spring-boot-starter/README.md @@ -25,7 +25,7 @@ compile 'com.alibaba:druid-spring-boot-starter:1.1.2' spring.datasource.url= spring.datasource.username= spring.datasource.password= -# ...其他配置(非必填项 ) +# ...其他配置(可选,不是必须的) ``` ## 配置属性 @@ -46,7 +46,7 @@ spring.datasource.druid.min-idle= spring.datasource.druid.max-wait= spring.datasource.druid.pool-prepared-statements= spring.datasource.druid.max-pool-prepared-statement-per-connection-size= -spring.datasource.druid.max-open-prepared-statements= #等价于上面的max-pool-prepared-statement-per-connection-size +spring.datasource.druid.max-open-prepared-statements= #和上面的等价 spring.datasource.druid.validation-query= spring.datasource.druid.validation-query-timeout= spring.datasource.druid.test-on-borrow= @@ -83,7 +83,7 @@ spring.datasource.druid.stat-view-servlet.deny= spring.datasource.druid.aop-patterns= # Spring监控AOP切入点,如x.y.z.service.*,配置多个英文逗号分隔 # 如果spring.datasource.druid.aop-patterns要代理的类没有定义interface请设置spring.aop.proxy-target-class=true ``` -Druid Spring Boot Starter 不仅限于对以上配置属性提供支持,```DruidDataSource``` 内提供```setter```方法的可配置属性都将被支持。你可以参考WIKI文档或通过IDE输入提示来进行配置。配置文件的格式你可以选择```.properties```或```.yml```,效果是一样的,在配置较多的情况下推荐使用```.yml```。 +Druid Spring Boot Starter 不仅限于对以上配置属性提供支持,[```DruidDataSource```](https://github.com/alibaba/druid/blob/master/src/main/java/com/alibaba/druid/pool/DruidDataSource.java) 内提供```setter```方法的可配置属性都将被支持。你可以参考WIKI文档或通过IDE输入提示来进行配置。配置文件的格式你可以选择```.properties```或```.yml```,效果是一样的,在配置较多的情况下推荐使用```.yml```。 diff --git a/druid-spring-boot-starter/README_EN.md b/druid-spring-boot-starter/README_EN.md index 6dff6527e3..8ee7e2d56b 100644 --- a/druid-spring-boot-starter/README_EN.md +++ b/druid-spring-boot-starter/README_EN.md @@ -15,7 +15,7 @@ Spring Boot with Druid support, help you simplify Druid config in Spring Boot. 1.1.2 ``` -```Gradle````` +```Gradle``` ```xml compile 'com.alibaba:druid-spring-boot-starter:1.1.2' @@ -81,7 +81,7 @@ spring.datasource.druid.stat-view-servlet.deny= spring.datasource.druid.aop-patterns= # Spring monitoring AOP point, such as x.y.z.service.*, multiple separated by comma. # If 'spring.datasource.druid.aop-patterns' to be the agent class does not define interface need set 'spring.aop.proxy-target-class = true' . ``` -The Druid Spring Boot Starter is not limited to support for the above configuration properties, and the configurable properties that provide the ```setter``` method in ``` DruidDataSource``` will be supported. You can refer to the WIKI document or configure it via the IDE input prompt. The format of the configuration file You can choose ```.properties``` or``` .yml```, the effect is the same, in the configuration of more cases recommend the use of ```.yml```. +The Druid Spring Boot Starter is not limited to support for the above configuration properties, and the configurable properties that provide the ```setter``` method in [``` DruidDataSource```](https://github.com/alibaba/druid/blob/master/src/main/java/com/alibaba/druid/pool/DruidDataSource.java) will be supported. You can refer to the WIKI document or configure it via the IDE input prompt. The format of the configuration file You can choose ```.properties``` or``` .yml```, the effect is the same, in the configuration of more cases recommend the use of ```.yml```. ## How to Configuration Multiple DataSource 1. Add config