Last active
December 31, 2019 09:30
-
-
Save ehsaniara/bda9d0f8fdd22e155a8aae5ea110ddeb to your computer and use it in GitHub Desktop.
spring boot application.yml file part of https://medium.com/@ehsaniara/spring-boot-2-with-multiple-datasource-for-postgres-data-replication-182c89124f54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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