Skip to content

Commit

Permalink
adds missing config file
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Dec 5, 2024
1 parent 3d850ae commit 08515e7
Showing 1 changed file with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -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

Check failure

Code scanning / SonarCloud

Credentials should not be hard-coded High

Revoke and change this password, as it is compromised. See more on SonarQube Cloud
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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 08515e7

Please sign in to comment.