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