parent
dd4635e55d
commit
642adc007f
@ -1,6 +1,16 @@
|
||||
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
|
||||
spring.datasource.schema-name=royalpay_local
|
||||
spring.datasource.host=192.168.0.50:3306
|
||||
spring.datasource.url=jdbc:mysql://${spring.datasource.host}/${spring.datasource.schema-name}?useUnicode=true&characterEncoding=utf8&useSSL=false
|
||||
spring.datasource.username=root
|
||||
spring.datasource.password=root
|
||||
#多数据源配置
|
||||
spring.datasource.type = com.zaxxer.hikari.HikariDataSource
|
||||
#数据源master
|
||||
|
||||
spring.datasource.master.schema-name=royalpay_production
|
||||
spring.datasource.master.host=192.168.1.52: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.username=taylor
|
||||
spring.datasource.master.password=taylor
|
||||
|
||||
#数据源salve
|
||||
spring.datasource.slave.schema-name=royalpay_production
|
||||
spring.datasource.slave.host=192.168.1.52: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.username=taylor
|
||||
spring.datasource.slave.password=taylor
|
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 432 B After Width: | Height: | Size: 547 B |
Loading…
Reference in new issue