From 1991fb572626ae6df9221bf5c2aefd1d6716e707 Mon Sep 17 00:00:00 2001 From: Eduard Kuksa Date: Sun, 23 Feb 2025 15:56:48 +0700 Subject: [PATCH] add .env support --- application.yaml | 6 +++--- pom.xml | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/application.yaml b/application.yaml index fee03e0..57ecf45 100644 --- a/application.yaml +++ b/application.yaml @@ -3,9 +3,9 @@ server: spring: datasource: - username: root - password: hRMH94dJ - url: jdbc:mysql://localhost:3306/search_engine?useSSL=false&requireSSL=false&allowPublicKeyRetrieval=true + username: ${DB_USER} + password: ${DB_PASSWORD} + url: ${DB_URL} jpa: hibernate: ddl-auto: update diff --git a/pom.xml b/pom.xml index cedc726..4f2ca58 100644 --- a/pom.xml +++ b/pom.xml @@ -45,5 +45,10 @@ 8.4.0 runtime + + me.paulschwarz + spring-dotenv + 4.0.0 + \ No newline at end of file