diff --git a/pom.xml b/pom.xml index f7c275f..df740a9 100644 --- a/pom.xml +++ b/pom.xml @@ -50,11 +50,6 @@ org.springframework.boot spring-boot-starter-web - - io.github.cdimascio - dotenv-java - 3.1.0 - org.springframework.boot spring-boot-devtools diff --git a/src/main/java/de/zendric/app/xpensely_server/XpenselyServerApplication.java b/src/main/java/de/zendric/app/xpensely_server/XpenselyServerApplication.java index ecd2d57..ae78652 100644 --- a/src/main/java/de/zendric/app/xpensely_server/XpenselyServerApplication.java +++ b/src/main/java/de/zendric/app/xpensely_server/XpenselyServerApplication.java @@ -4,21 +4,11 @@ import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.scheduling.annotation.EnableScheduling; -import io.github.cdimascio.dotenv.Dotenv; - @SpringBootApplication @EnableScheduling public class XpenselyServerApplication { public static void main(String[] args) { - Dotenv dotenv = Dotenv.load(); // Loads the .env file - System.setProperty("GOOGLE_CLIENT_ID", dotenv.get("GOOGLE_CLIENT_ID")); - System.setProperty("GOOGLE_CLIENT_SECRET", dotenv.get("GOOGLE_CLIENT_SECRET")); - System.setProperty("DB_USERNAME", dotenv.get("DB_USERNAME")); - System.setProperty("DB_PASSWORD", dotenv.get("DB_PASSWORD")); - System.setProperty("DB_DEV_CONTAINER", dotenv.get("DB_DEV_CONTAINER")); - System.setProperty("DB_DEV_NAME", dotenv.get("DB_DEV_NAME")); - System.setProperty("DB_PORT", dotenv.get("DB_PORT")); SpringApplication.run(XpenselyServerApplication.class, args); }