There was an error while loading. Please reload this page.
1 parent 48ec119 commit c8a8942Copy full SHA for c8a8942
src/main/resources/application.properties
@@ -1,2 +1,6 @@
1
server.port=${PORT:5000}
2
-spring.datasource.url=${JDBC_DATABASE_URL}
+# 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