zjcnb commented on issue #13887:
URL:
https://github.com/apache/shardingsphere/issues/13887#issuecomment-984245481
@legendyman Hi, you can look this:
```
## mybatis的配置
mybatis:
mapper-locations: classpath*:mapper/**/*Mapper.xml
type-aliases-package: com.example
server:
port: 8899
spring:
shardingsphere:
props:
sql-show: true
sql-comment-parse-enabled: true
datasource:
ds0:
username: root
password: 123456
jdbc-url: jdbc:mysql://127.0.0.1:3306/test0
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
ds1:
username: root
password: 123456
jdbc-url: jdbc:mysql://127.0.0.1:3306/test1
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
names: ds0, ds1
rules:
readwrite-splitting:
data-sources:
master-slave:
write-data-source-name: ds0
read-data-source-names: ds1
load-balancer-name: load
load-balancers:
load:
type: ROUND_ROBIN
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]