Skip to content

Instantly share code, notes, and snippets.

@ehsaniara
Last active December 31, 2019 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ehsaniara/bda9d0f8fdd22e155a8aae5ea110ddeb to your computer and use it in GitHub Desktop.
Save ehsaniara/bda9d0f8fdd22e155a8aae5ea110ddeb to your computer and use it in GitHub Desktop.
spring:
datasource-write:
driver-class-name: org.postgresql.Driver
jdbc-url: jdbc:postgresql://localhost:5432/demo
username: 'postgres'
password: 'postgres_user_for_db_write'
platform: postgresql
hikari:
idle-timeout: 10000
maximum-pool-size: 10
minimum-idle: 5
pool-name: WriteHikariPool
datasource-read:
driver-class-name: org.postgresql.Driver
jdbc-url: jdbc:postgresql://localhost:5433/demo
username: 'postgres'
password: 'postgres_user_for_db_read'
platform: postgresql
hikari:
idle-timeout: 10000
maximum-pool-size: 10
minimum-idle: 5
pool-name: ReadHikariPool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment