问题
I am new to dropwizard. I want to know is their any other way to set the connection port, admin port, logger level and all configuration parameters and not by use .YML file.
回答1:
You can use command like param when starting the application.
Its all within the docs within the Configuration section.
For example:
-Ddw.server.applicationConnectors[0].port=9090
来源:https://stackoverflow.com/questions/23730814/dropwizard-configuration-by-not-using-yml-file