mirror of
https://github.com/lightbend/config.git
synced 2025-01-28 21:20:07 +08:00
Merge pull request #449 from ronanM/patch-1
Command line for alternative config `-Dconfig.file`
This commit is contained in:
commit
93d70f6739
@ -251,7 +251,8 @@ library examples in `examples/` show how to accept a custom config
|
|||||||
while defaulting to `ConfigFactory.load()`.
|
while defaulting to `ConfigFactory.load()`.
|
||||||
|
|
||||||
For applications using `application.{conf,json,properties}`,
|
For applications using `application.{conf,json,properties}`,
|
||||||
system properties can be used to force a different config source:
|
system properties can be used to force a different config source
|
||||||
|
(e.g. from command line `-Dconfig.file=path/to/config-file`):
|
||||||
|
|
||||||
- `config.resource` specifies a resource name - not a
|
- `config.resource` specifies a resource name - not a
|
||||||
basename, i.e. `application.conf` not `application`
|
basename, i.e. `application.conf` not `application`
|
||||||
|
Loading…
Reference in New Issue
Block a user