Skip to content
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

disconf-client是否可以支持Config类的继承? #91

Open
caokaifang opened this issue Apr 28, 2016 · 1 comment
Open

disconf-client是否可以支持Config类的继承? #91

caokaifang opened this issue Apr 28, 2016 · 1 comment

Comments

@caokaifang
Copy link

目前项目中由于许多配置均含有公共配置属性,所以将这些公共配置属性抽象成一个父类,然后子类继承该父类,但是客户端启动后报错如下:
[ ERROR ] com.baidu.disconf.client.utils.MethodUtils.getFieldFromMethod(MethodUtils.java:59) 。。。cannot get its related field name.
目前是自己修改了StaticScannerFileMgrImpl.transformScanFile方法中disconfFileClass.getDeclaredFields()增加获取父类属性的代码解决的
请问后面是否可以提供父类的支持?

@damingzms
Copy link

我觉得disconf-web端的app支持层级就好了,父app作为子app的默认配置,子app覆盖父app的相同配置文件的相同配置项 @knightliao

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