Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 1102035

Browse files
committed
added database cred support.
1 parent 10b0827 commit 1102035

File tree

3 files changed

+3
-18
lines changed

3 files changed

+3
-18
lines changed

pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,10 @@
2525
<artifactId>spring-boot-starter-web</artifactId>
2626
</dependency>
2727

28-
<!--
2928
<dependency>
3029
<groupId>org.springframework.boot</groupId>
3130
<artifactId>spring-boot-starter-data-mongodb</artifactId>
3231
</dependency>
33-
-->
3432

3533
<dependency>
3634
<groupId>io.springfox</groupId>

src/main/resources/application.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ server.error.whitelabel.enabled=false
44

55
#-------------------MONGO---------------
66
spring.data.mongodb.authentication-database=admin
7-
spring.data.mongodb.database=filefighter
7+
spring.data.mongodb.database=${DB_NAME}
88
spring.data.mongodb.host=localhost
99
spring.data.mongodb.port=27017
10-
spring.data.mongodb.username=
11-
spring.data.mongodb.password=
10+
spring.data.mongodb.username=${DB_USERNAME}
11+
spring.data.mongodb.password=${DB_PASSWORD}

src/test/java/de/filefighter/rest/RestApplicationTests.java

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)