不使用.YML文件的Dropwizard配置? [英] Dropwizard configuration by not using .YML file?

查看:134
本文介绍了不使用.YML文件的Dropwizard配置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新手的傻瓜。
我想知道的是他们设置连接端口,管理端口,记录器级别和所有配置参数的任何其他方式,而不是使用.YML文件。

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.

推荐答案

启动应用程序时可以使用像param这样的命令。

You can use command like param when starting the application.

它全部在 docs

例如:

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

这篇关于不使用.YML文件的Dropwizard配置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆