You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/02/18 08:45:18 UTC
[GitHub] [shardingsphere] ynfeng commented on issue #15497: NPE with flywaydb
ynfeng commented on issue #15497:
URL: https://github.com/apache/shardingsphere/issues/15497#issuecomment-1044151716
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org