sol-cloud/cloud/plugin/plugin-database/src/main/resources/application-pg-m1.yml

18 lines
888 B
YAML
Raw Normal View History

spring:
datasource:
dynamic:
primary: postgresMaster_1 #设置默认的数据源或者数据源组,默认值即为master
strict: true #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
grace-destroy: false #是否优雅关闭数据源默认为false设置为true时关闭数据源时如果数据源中还存在活跃连接至多等待10s后强制关闭
datasource:
postgresMaster_1:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://${POSTGRES_HOST:localhost}:${POSTGRES_PORT:5432}/cloud
username: ${POSTGRES_USER:postgres}
password: ${POSTGRES_PASSWORD:postgrespwd}
seata: false
p6spy: false
hikari:
maximum-pool-size: 20
minimum-idle: 2
connection-timeout: 3000