fix: update-readme, format configuration yaml (#593)

I missed a level. :(

Co-authored-by: guop <guop0781@fingard.com>
This commit is contained in:
Alvin Kwok 2023-11-16 20:19:44 +08:00 committed by GitHub
parent 93fe2cb1b9
commit 921d61ab75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,6 +132,7 @@ spring:
spring:
datasource:
dynamic:
datasource:
master_1:
master_2:
slave_1:
@ -144,6 +145,7 @@ spring:
spring:
datasource:
dynamic:
datasource:
mysql:
oracle:
sqlserver:
@ -156,6 +158,7 @@ spring:
spring:
datasource:
dynamic:
datasource:
master:
slave_1:
slave_2:
@ -163,7 +166,6 @@ spring:
oracle_2:
```
3. 使用 **@DS** 切换数据源。
**@DS** 可以注解在方法上或类上,**同时存在就近原则 方法上注解 优先于 类上注解**。