Skip to content

Commit

Permalink
add note with clarification how to pass -Dconfig properly; taken from #…
Browse files Browse the repository at this point in the history
  • Loading branch information
iamtodor committed Mar 30, 2022
1 parent d62bd12 commit fad9aff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ system properties can be used to force a different config source
it should include the extension, not be a basename
- `config.url` specifies a URL

**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`

These system properties specify a _replacement_ for
`application.{conf,json,properties}`, not an addition. They only
affect apps using the default `ConfigFactory.load()`
Expand Down

0 comments on commit fad9aff

Please sign in to comment.