From 27965e74a30fd7f241b91e2ecee61f09596f5ee4 Mon Sep 17 00:00:00 2001 From: Vladik-gif Date: Thu, 21 Nov 2024 20:19:34 +0200 Subject: [PATCH] added file .env for developers --- .gitignore | 3 ++- src/main/resources/application.properties | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 7f3fc798..40031a6c 100644 --- a/.gitignore +++ b/.gitignore @@ -32,4 +32,5 @@ build/ ### VS Code ### .vscode/ -logs/* \ No newline at end of file +logs/* +.env \ No newline at end of file diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index f9e2968a..52f5b173 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,6 +1,8 @@ # Spring Profile: spring.profiles.active=prod +spring.config.import=optional:file:.env[.properties] + #Server port: server.port=${PORT:8080}