mirror of
https://github.com/lightbend/config.git
synced 2025-01-29 05:30:08 +08:00
Merge pull request #763 from iamtodor/add_dconfig_pass_clarification
This commit is contained in:
commit
4458ea947a
@ -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()`
|
||||
|
Loading…
Reference in New Issue
Block a user