diff --git a/druid-spring-boot-starter/README.md b/druid-spring-boot-starter/README.md index fa7036c961..85a5c5b95f 100644 --- a/druid-spring-boot-starter/README.md +++ b/druid-spring-boot-starter/README.md @@ -7,26 +7,26 @@ Druid Spring Boot Starter 用于帮助你在Spring Boot项目中轻松集成Drui ## 如何使用 1. 在 Spring Boot 项目中加入```druid-spring-boot-starter```依赖 -```Maven``` -```xml - - com.alibaba - druid-spring-boot-starter - 1.1.2 - -``` -```Gradle``` -```xml -compile 'com.alibaba:druid-spring-boot-starter:1.1.2' - -``` + ```Maven``` + ```xml + + com.alibaba + druid-spring-boot-starter + 1.1.2 + + ``` + ```Gradle``` + ```xml + compile 'com.alibaba:druid-spring-boot-starter:1.1.2' + + ``` 2. 添加配置 -```xml -spring.datasource.url= -spring.datasource.username= -spring.datasource.password= -# ...其他配置(可选,不是必须的) -``` + ```xml + spring.datasource.url= + spring.datasource.username= + spring.datasource.password= + # ...其他配置(可选,不是必须的) + ``` ## 配置属性 Druid Spring Boot Starter 配置属性的名称完全遵照 Druid,你可以通过 Spring Boot 配置文件来配置Druid数据库连接池和监控,如果没有配置则使用默认值。 diff --git a/druid-spring-boot-starter/README_EN.md b/druid-spring-boot-starter/README_EN.md index 8ee7e2d56b..344a29928e 100644 --- a/druid-spring-boot-starter/README_EN.md +++ b/druid-spring-boot-starter/README_EN.md @@ -7,26 +7,25 @@ Spring Boot with Druid support, help you simplify Druid config in Spring Boot. ## Usage 1. Add the ```druid-spring-boot-starter``` dependency in Spring Boot project. -```Maven``` -```xml - - com.alibaba - druid-spring-boot-starter - 1.1.2 - -``` -```Gradle``` -```xml -compile 'com.alibaba:druid-spring-boot-starter:1.1.2' - -``` + ```Maven``` + ```xml + + com.alibaba + druid-spring-boot-starter + 1.1.2 + + ``` + ```Gradle``` + ```xml + compile 'com.alibaba:druid-spring-boot-starter:1.1.2' + ``` 2. Add configuration properties. -```xml -spring.datasource.url= -spring.datasource.username= -spring.datasource.password= -# ...other config (optional) -``` + ```xml + spring.datasource.url= + spring.datasource.username= + spring.datasource.password= + # ...other config (optional) + ``` ## Configuration Properties Druid Spring Boot Starter properties name in full compliance with Druid configuration, you can configure the Druid database connection pool and monitor the configuration properties through the following configuration properties, using default values if not configured. - JDBC