Skip to content

Commit c8a8942

Browse files
authored
Add database connection string default value (#186)
1 parent 48ec119 commit c8a8942

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
server.port=${PORT:5000}
2-
spring.datasource.url=${JDBC_DATABASE_URL}
2+
# Default to "jdbc:postgresql://example.com:5432/database" so that the application at least starts up when
3+
# JDBC_DATABASE_URL is not set. We use this here to reduce friction when newcomers work with this getting started
4+
# application. Production applications should not have a default like this, especially not ones that have credentials
5+
# in them!
6+
spring.datasource.url=${JDBC_DATABASE_URL:jdbc:postgresql://example.com:5432/database}

0 commit comments

Comments
 (0)