This is documented in the Dropwizard Core docs in the Configuration section.
http://www.dropwizard.io/1.1.0/docs/manual/core.html On Wed, Jun 14, 2017 at 3:25 PM chetan conikee <[email protected]> wrote: > Is it possible in dropwizard to accept/bootstrap using configuration in > config.yml AND ALSO pass from command line to override > > For instance, I have a variable called foo > > In config.yml, I specify > > foo : fooValue > > I created a ConfiguredCommand<MyConfiguration> and check for foo, as I am > attempting to overrider the value of foo specified in the config file with > what is passed from command line > > java -jar <myjar> server config.yml --foo foo2ndValue > > Despite of adding ConfiguredCommand, I am not able to see anything being > passed through when combined with server config.yml > > Is this possible? Please illustrate with example if possible > > > > -- > You received this message because you are subscribed to the Google Groups > "dropwizard-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "dropwizard-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
