Merge pull request #763 from iamtodor/add_dconfig_pass_clarification

This commit is contained in:
Havoc Pennington 2022-03-31 23:37:59 -04:00 committed by GitHub
commit 4458ea947a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()`