Skip to content

Commit

Permalink
Merge pull request #395 from dhbxs/patch-1
Browse files Browse the repository at this point in the history
Update dynamic-datasource.md
  • Loading branch information
huayanYu authored Dec 9, 2024
2 parents 5d801b8 + 7e9d5b3 commit c613eed
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions src/content/docs/guides/dynamic-datasource.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,23 @@ sidebar:
### 使用方法

1. **引入依赖**

```xml
<dependency>
- SpringBoot2
```xml
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>dynamic-datasource-spring-boot-starter</artifactId>
<version>${version}</version>
</dependency>
```

- SpringBoot3
```xml
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>dynamic-datasource-spring-boot-starter</artifactId>
<artifactId>dynamic-datasource-spring-boot3-starter</artifactId>
<version>${version}</version>
</dependency>
```
</dependency>
```

2. **配置数据源**

Expand Down

0 comments on commit c613eed

Please sign in to comment.