Spring Boot 4 · Configuration

Configure a database

Point the app at PostgreSQL. Use real credentials from the environment.

spring.datasource.url=jdbc:postgresql://localhost:5432/mydb
spring.datasource.username=${DB_USER}
spring.datasource.password=${DB_PASSWORD}

Official Spring Boot 4 documentation

More configuration commands

All configuration commands · Spring Boot 4 cheatsheet

Was this page helpful?