diff --git a/jpa/boot-data-multipledatasources/src/main/resources/application.properties b/jpa/boot-data-multipledatasources/src/main/resources/application.properties index eaf1ae34c..4c3050f54 100644 --- a/jpa/boot-data-multipledatasources/src/main/resources/application.properties +++ b/jpa/boot-data-multipledatasources/src/main/resources/application.properties @@ -1,15 +1,16 @@ spring.application.name=boot-data-multipledatasources -#Store card holder (cardholder name, zip) -app.datasource.member.url=jdbc:postgresql://localhost:5432/memberdb?createDatabaseIfNotExist=true -app.datasource.member.username=postgres -app.datasource.member.password=postgres -app.datasource.member.driverClassName=org.postgresql.Driver -app.datasource.member.configuration.connectionTimeout=30000 -app.datasource.member.configuration.idleTimeout=600000 -app.datasource.member.configuration.maxLifetime=1800000 -app.datasource.member.configuration.poolName=memberHikariPool -app.datasource.member.configuration.autoCommit=false +#Store cardholder (cardholder name, zip) +spring.datasource.url=jdbc:postgresql://localhost:5432/memberdb?createDatabaseIfNotExist=true +spring.datasource.username=postgres +spring.datasource.password=postgres +spring.datasource.driverClassName=org.postgresql.Driver +spring.datasource.hikari.connectionTimeout=30000 +spring.datasource.hikari.idleTimeout=600000 +spring.datasource.hikari.maxLifetime=1800000 +spring.datasource.hikari.poolName=memberHikariPool +spring.datasource.hikari.data-source-properties.ApplicationName=${spring.application.name} +spring.datasource.hikari.autoCommit=false #card number (cardholder id, cardnumber) app.datasource.cardholder.url=jdbc:mysql://localhost:3306/cardholderdb?createDatabaseIfNotExist=true @@ -20,6 +21,7 @@ app.datasource.cardholder.hikari.connectionTimeout=30000 app.datasource.cardholder.hikari.idleTimeout=600000 app.datasource.cardholder.hikari.maxLifetime=1800000 app.datasource.cardholder.hikari.poolName=cardHolderHikariPool +app.datasource.cardholder.hikari.data-source-properties.ApplicationName=${spring.application.name} app.datasource.cardholder.hikari.autoCommit=false ## Common Properties @@ -43,9 +45,9 @@ spring.flyway.user=${app.datasource.cardholder.username} spring.flyway.password=${app.datasource.cardholder.password} ## Liquibase used postgres Database -spring.liquibase.url=${app.datasource.member.url} -spring.liquibase.user=${app.datasource.member.username} -spring.liquibase.password=${app.datasource.member.password} +spring.liquibase.url=${spring.datasource.url} +spring.liquibase.user=${spring.datasource.username} +spring.liquibase.password=${spring.datasource.password} spring.mvc.problemdetails.enabled=true spring.threads.virtual.enabled=true