remove dotenv
All checks were successful
Build and Deploy Spring Boot Server / build (push) Successful in 10m11s
All checks were successful
Build and Deploy Spring Boot Server / build (push) Successful in 10m11s
This commit is contained in:
5
pom.xml
5
pom.xml
@@ -50,11 +50,6 @@
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.github.cdimascio</groupId>
|
||||
<artifactId>dotenv-java</artifactId>
|
||||
<version>3.1.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-devtools</artifactId>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user