|
|
@ -2,15 +2,15 @@
|
|
|
|
spring.datasource.type = com.zaxxer.hikari.HikariDataSource
|
|
|
|
spring.datasource.type = com.zaxxer.hikari.HikariDataSource
|
|
|
|
#数据源master
|
|
|
|
#数据源master
|
|
|
|
|
|
|
|
|
|
|
|
spring.datasource.master.schema-name=royalpay_production
|
|
|
|
spring.datasource.master.schema-name=royalpay_dev
|
|
|
|
spring.datasource.master.host=119.28.3.196:3310
|
|
|
|
spring.datasource.master.host=127.0.0.1:3306
|
|
|
|
spring.datasource.master.jdbc-url=jdbc:mysql://${spring.datasource.master.host}/${spring.datasource.master.schema-name}?useUnicode=true&characterEncoding=utf8&useSSL=false
|
|
|
|
spring.datasource.master.jdbc-url=jdbc:mysql://${spring.datasource.master.host}/${spring.datasource.master.schema-name}?useUnicode=true&characterEncoding=utf8&useSSL=false
|
|
|
|
spring.datasource.master.username=readonly
|
|
|
|
spring.datasource.master.username=root
|
|
|
|
spring.datasource.master.password=read0nly
|
|
|
|
spring.datasource.master.password=root
|
|
|
|
|
|
|
|
|
|
|
|
#数据源salve
|
|
|
|
#数据源salve
|
|
|
|
spring.datasource.slave.schema-name=royalpay_production
|
|
|
|
spring.datasource.slave.schema-name=royalpay_dev
|
|
|
|
spring.datasource.slave.host=119.28.3.196:3310
|
|
|
|
spring.datasource.slave.host=127.0.0.1:3306
|
|
|
|
spring.datasource.slave.jdbc-url=jdbc:mysql://${spring.datasource.slave.host}/${spring.datasource.slave.schema-name}?useUnicode=true&characterEncoding=utf8&useSSL=false
|
|
|
|
spring.datasource.slave.jdbc-url=jdbc:mysql://${spring.datasource.slave.host}/${spring.datasource.slave.schema-name}?useUnicode=true&characterEncoding=utf8&useSSL=false
|
|
|
|
spring.datasource.slave.username=readonly
|
|
|
|
spring.datasource.slave.username=root
|
|
|
|
spring.datasource.slave.password=read0nly
|
|
|
|
spring.datasource.slave.password=root
|
|
|
|