Skip to content

Instantly share code, notes, and snippets.

View JanCizmar's full-sized avatar

Jan Cizmar JanCizmar

View GitHub Profile
@JanCizmar
JanCizmar / PostgresAutoStartConfiguration.kt
Last active January 7, 2022 11:04
Running PostgresSQL server from SpringBoot App
package io.tolgee.configuration
import io.tolgee.configuration.tolgee.PostgresAutostartProperties
import io.tolgee.postgresStarters.PostgresRunner
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
import org.springframework.boot.jdbc.DataSourceBuilder
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import javax.sql.DataSource