Update README.md

This commit is contained in:
小锅盖 2023-06-27 20:51:09 +08:00 committed by GitHub
parent e87a127f99
commit 0f6d587d7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@
dynamic-datasource-spring-boot-starter 是一个基于springboot的快速集成多数据源的启动器。
其支持 **Jdk 1.7+, SpringBoot 1.4.x 1.5.x 2.x.x 3.x.x**。
其支持 **Jdk 1.7+, SpringBoot 1.5.x 2.x.x 3.x.x**。
## 文档 | Documentation
@ -75,6 +75,7 @@ dynamic-datasource-spring-boot-starter 是一个基于springboot的快速集成
1. 引入dynamic-datasource-spring-boot-starter。
spring-boot 1.5.x 2.x.x
```xml
<dependency>
<groupId>com.baomidou</groupId>
@ -83,6 +84,15 @@ dynamic-datasource-spring-boot-starter 是一个基于springboot的快速集成
</dependency>
```
spring-boot3及以上
```xml
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>dynamic-datasource-spring-boot3-starter</artifactId>
<version>${version}</version>
</dependency>
```
2. 配置数据源。
```yaml
@ -151,4 +161,4 @@ public class UserServiceImpl implements UserService {
return jdbcTemplate.queryForList("select * from user where age >10");
}
}
```
```