简体   繁体   English

通过不使用.YML文件的Dropwizard配置?

[英]Dropwizard configuration by not using .YML file?

I am new to dropwizard. 我是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. 我想知道的是它们以任何其他方式来设置连接端口,管理端口,记录器级别和所有配置参数,而不是通过使用.YML文件。

You can use command like param when starting the application. 您可以在启动应用程序时使用诸如param之类的命令。

Its all within the docs within the Configuration section. 它全部在“配置”部分的文档中。

For example: 例如:

-Ddw.server.applicationConnectors[0].port=9090

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM