Skip to content

Instantly share code, notes, and snippets.

View timsmelik's full-sized avatar

Tim Smelik timsmelik

View GitHub Profile
@timsmelik
timsmelik / SPRING_BOOT_POSTGRES_READ_TIMEOUT.md
Created January 15, 2024 15:48
Spring Boot - Postgres read timeout

Spring Boot + Postgres Read Timeout

The read timeout on a Postgres connection cannot be set with standard properties. We have to use a custom property under the following key.

spring.datasource.hikari.data-source-properties

A list of properties that can be used for the Postgres driver can be found on this page.

So, in order to set the socket timeout, we have to set the following key.

@timsmelik
timsmelik / kotlin-spring-configuration-properties.md
Created December 14, 2022 14:05
Kotlin + Spring: ConfigurationProperties data classes

Kotlin + Spring: ConfigurationProperties data classes

Create the application.properties or application.yml file

email:
  from: myemail@mydomain.com
  to: theiremail@theirdomain.com