Skip to content

Commit fad9aff

Browse files
committed
add note with clarification how to pass -Dconfig properly; taken from #84 and https://stackoverflow.com/a/31305181/5151861
1 parent d62bd12 commit fad9aff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ system properties can be used to force a different config source
257257
it should include the extension, not be a basename
258258
- `config.url` specifies a URL
259259

260+
**Note**: you need to pass `-Dconfig.file=path/to/config-file` before the jar itself, e.g. `java -Dconfig.file=path/to/config-file.conf -jar path/to/jar-file.jar`
261+
260262
These system properties specify a _replacement_ for
261263
`application.{conf,json,properties}`, not an addition. They only
262264
affect apps using the default `ConfigFactory.load()`

0 commit comments

Comments
 (0)