ynfeng removed a comment on issue #15497:
URL:
https://github.com/apache/shardingsphere/issues/15497#issuecomment-1044163962
spring:
datasource:
url:
jdbc:mysql://localhost:3306/demo?useUnicode=true&autoReconnect=true&useSSL=false&characterEncoding=UTF8&allowMultiQueries=true
username: root
password: 123456
driver-class-name: com.mysql.cj.jdbc.Driver
flyway:
enabled: true
clean-disabled: true
locations: classpath:db/migration
table: flyway_schema_history
baseline-on-migrate: true
baseline-version: 1
encoding: UTF-8
out-of-order: false
schemas: demo
validate-on-migrate: false
shardingsphere:
rules:
readwrite-splitting:
data-sources:
readwrite-ds:
type: Static
props:
write-data-source-name: main-ds
read-data-source-names: readonly-ds
datasource:
names:
- main-ds
- readonly-ds
main-ds:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
jdbc-url:
jdbc:mysql://localhost:3306/demo?useUnicode=true&autoReconnect=true&useSSL=false&characterEncoding=UTF8&allowMultiQueries=true
username: root
password: 123456
readonly-ds:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
jdbc-url:
jdbc:mysql://localhost:3306/demo?useUnicode=true&autoReconnect=true&useSSL=false&characterEncoding=UTF8&allowMultiQueries=true
username: root
password: 123456
--
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]