Fusion JDBC 配置
fusion.jdbc {
default {
poolName = "fusion"
jdbcUrl = "jdbc:mysql://127.0.0.1:3306/zkhk-new?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&zeroDateTimeBehavior=convertToNull&useSSL=false"
username = "devuser"
password = "devPass.2019"
connectionTestQuery = "select 1;"
maximumPoolSize = 2
}
pg-primary {
poolName = "pg-primary"
jdbcUrl = "jdbc:postgresql://127.0.0.1,127.0.0.1:55432/test?reWriteBatchedInserts=true&targetServerType=master"
username = "devuser"
password = "devPass.2019"
connectionTestQuery = "select 1;"
maximumPoolSize = 2
}
pg-secondaries {
poolName = "pg-secondaries"
jdbcUrl = "jdbc:postgresql://127.0.0.1,127.0.0.1:55432/test?reWriteBatchedInserts=true&targetServerType=preferSlave&loadBalanceHosts=true&readOnly=true"
username = "devuser"
password = "devPass.2019"
connectionTestQuery = "select 1;"
maximumPoolSize = 2
}
}
2.0.6