Skip to content

Commit

Permalink
Merge pull request #763 from iamtodor/add_dconfig_pass_clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
havocp authored Apr 1, 2022
2 parents d62bd12 + fd9be4a commit 4458ea9
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`. Same applies for `-Dconfig.resource=config-file.conf`

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 4458ea9

Please sign in to comment.