-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[Future]希望能增加非注解的回调类来处理更新配置 #67
Comments
我也遇到相同的场景。一种方法, |
|
@myoss 有道理 ,下个版本加你这个功能 |
期待这一功能,辛苦作者了 @knightliao |
我也需要非注解功能。。。。 |
希望能增加非注解的回调类来处理更新配置
2.6.32版本中会增加 已提交至master/dev, 目前snapshot中。 |
已经发布 |
我已经获取更新,看了文档和代码,试用下来,我是有些疑问的。
建议 // 获取类加载的根路径 D:\workspaces\IntelliJ\study-java\target\classes
File f = new File(this.getClass().getResource("/").getPath());
System.out.println("获取类加载的根路径: " + f); 看了源码 如果可以,我希望这个回调接口,就像注解接口一样,它是跟xml配置文件绑定在一起的,最大区别就是它的文件名是在xml配置文件中声明的,然后这个回调接口最好不是给路径让用户自己去读取(可能会涉及一些问题),而是直接给最新的配置文件的内容,用户应该是不用去关心 |
|
wiki和demo的代码我粗略看下来,client端要做到能实时获取web端更新的配置文件,只能使用注解方式,能否实现类似taobao diamond这种回调类,自己来处理获取到的配置信息,并且不是注解的,有些场景下,我的配置文件非常个性化,而不是简单的properties属性文件的key=value形式,我希望自己来处理
The text was updated successfully, but these errors were encountered: