datasource в Spring Boot с помощью свойств application.yml
spring:
datasource:
url: ${GAT_DRIER_DS_URL:jdbc:postgresql://localhost:5432/drier_moscow}
username: ${GAT_DRIER_DS_USER:gat_drier}
password: ${GAT_DRIER_DS_PASSWORD:gat_drier}
driver-class-name: org.postgresql.Driver # Настройка только для Jdbc