8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
读取配置是在:DisClientConfig.loadConfig(String filePath) 但是ConfigMgr在初始化的时候,直接传入的null,如下: // 导入用户配置 DisClientConfig.getInstance().loadConfig(null);
// 导入用户配置 DisClientConfig.getInstance().loadConfig(null);
我想从指定路径的文件读取,而不只classpath,还有别的方式么?烦请给于解答,万分感谢!
The text was updated successfully, but these errors were encountered:
目前只支持 classpath读取,下一个版本会支持,https://github.com/knightliao/disconf/wiki/updates 近期会发布
Sorry, something went wrong.
非常期待
例如使用 -Ddisconf.conf=/tmp/disconf.properties 来读取 disconf.properties 文件。默认是从classpath根目录读取此文件。
2.6.34 版本
-Ddisconf.conf=/tmp/disconf.properties 怎么用?
https://github.com/knightliao/disconf/wiki/%E9%85%8D%E7%BD%AE%E8%AF%B4%E6%98%8E 可以自定义 disconf.properties文件的地址
knightliao
No branches or pull requests
读取配置是在:DisClientConfig.loadConfig(String filePath)
但是ConfigMgr在初始化的时候,直接传入的null,如下:
// 导入用户配置 DisClientConfig.getInstance().loadConfig(null);
我想从指定路径的文件读取,而不只classpath,还有别的方式么?烦请给于解答,万分感谢!
The text was updated successfully, but these errors were encountered: