8000 在哪可以自定义disconf.properties路径? · Issue #93 · knightliao/disconf · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

在哪可以自定义disconf.properties路径? #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gradysong opened this issue Apr 30, 2016 · 5 comments
Closed

在哪可以自定义disconf.properties路径? #93

gradysong opened this issue Apr 30, 2016 · 5 comments
Assignees
Milestone

Comments

@gradysong
Copy link

读取配置是在:DisClientConfig.loadConfig(String filePath)
但是ConfigMgr在初始化的时候,直接传入的null,如下:
// 导入用户配置 DisClientConfig.getInstance().loadConfig(null);

我想从指定路径的文件读取,而不只classpath,还有别的方式么?烦请给于解答,万分感谢!

@knightliao
Copy link
Owner

目前只支持 classpath读取,下一个版本会支持,https://github.com/knightliao/disconf/wiki/updates 近期会发布

@gradysong
Copy link
Author

非常期待

@knightliao knightliao self-assigned this May 28, 2016
@knightliao knightliao added this to the 2.6.34 milestone May 28, 2016
@knightliao
Copy link
Owner

例如使用 -Ddisconf.conf=/tmp/disconf.properties 来读取 disconf.properties 文件。默认是从classpath根目录读取此文件。

2.6.34 版本

@ChenXiaoQiang0318
Copy link

-Ddisconf.conf=/tmp/disconf.properties 怎么用?

@knightliao
Copy link
Owner

https://github.com/knightliao/disconf/wiki/%E9%85%8D%E7%BD%AE%E8%AF%B4%E6%98%8E 可以自定义 disconf.properties文件的地址

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
0