Skip to content

Commit

Permalink
Sett eksplisitt connection timeout på connection pool
Browse files Browse the repository at this point in the history
  • Loading branch information
oddgfa committed Aug 14, 2023
1 parent f4a6577 commit e0dc48b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ open class ApplikasjonDBConfigLocal(private val environment: Environment) {
config.password = password
config.maximumPoolSize = 2
config.driverClassName = driverClassName
config.connectionTestQuery = "SELECT 1"
config.connectionTimeout = 3000
return HikariDataSource(config)
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ statistikk.importering.aktivert: true
statistikk.eksportering.aktivert: true

applikasjon.datasource:
url: jdbc:h2:mem:db-local;MODE=PostgreSQL;DB_CLOSE_DELAY=-1;TRACE_LEVEL_SYSTEM_OUT=3
url: jdbc:h2:mem:db-local;MODE=PostgreSQL;DB_CLOSE_DELAY=-1
username: SA
password:
driver-class-name: org.h2.Driver
Expand Down

0 comments on commit e0dc48b

Please sign in to comment.