Skip to content

Commit

Permalink
docs: Updated docs to include notes on config override enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
cmicali committed Feb 19, 2014
1 parent f04266c commit 2200d6b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docs/source/manual/core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,17 @@ Dropwizard then calls your ``Application`` subclass to initialize your applicati
This will work even if the configuration setting in question does not exist in your config file, in
which case it will get added.
You can override configuration settings in arrays of objects like this:
``java -Ddw.server.applicationConnectors[0].port=9090 server my-config.json``
You can override configuration settings in maps like this:
``java -Ddw.database.properties.hibernate.hbm2ddl.auto=none server my-config.json``
You can also override a configuration setting that is an array of strings by using the ',' character
as an array element separtor. For example, to override a configuration setting myapp.myserver.hosts
as an array element separator. For example, to override a configuration setting myapp.myserver.hosts
that is an array of strings in the configuration, you could start your service like this:
``java -Ddw.myapp.myserver.hosts=server1,server2,server3 server my-config.json``
Expand Down

0 comments on commit 2200d6b

Please sign in to comment.