update > document for V1.1.2

This commit is contained in:
lihengming
2017-07-24 00:48:08 +08:00
parent 1015cbd616
commit aadcc67d5d
2 changed files with 37 additions and 38 deletions
+19 -19
View File
@@ -7,26 +7,26 @@ Druid Spring Boot Starter 用于帮助你在Spring Boot项目中轻松集成Drui
## 如何使用
1. 在 Spring Boot 项目中加入```druid-spring-boot-starter```依赖
```Maven```
```xml
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.1.2</version>
</dependency>
```
```Gradle```
```xml
compile 'com.alibaba:druid-spring-boot-starter:1.1.2'
```
```Maven```
```xml
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.1.2</version>
</dependency>
```
```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数据库连接池和监控,如果没有配置则使用默认值。
+18 -19
View File
@@ -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
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.1.2</version>
</dependency>
```
```Gradle```
```xml
compile 'com.alibaba:druid-spring-boot-starter:1.1.2'
```
```Maven```
```xml
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.1.2</version>
</dependency>
```
```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