Spring PostgreSQL Support

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

External

Internal

Overview

Dependencies

dependencies {

    implementation('org.springframework.boot:spring-boot-starter-data-jpa')
    runtimeOnly('org.postgresql:postgresql')
}

Configuration

If using Spring Boot Database Initialization and Postgres-specific DDL and DML, create schema-postgres.sql, data-postgres.sql files and configure the "plaform" as: <syntaxhighlight='text'> spring.datasource.platform=postgres </syntaxhighlight>

More details available here:

Spring Boot Database Initialization