- I have searched the issues of this repository and believe that this is not a duplicate.
Ⅰ. Issue Description
当使用springboot时,filelistener的定时刷新其实是无效的会被SpringBootConfigurationProvider代理
可使用如下2中解决方案处理,有更优方案欢迎留言讨论
1.可通过判断是否为getLatestConfig,去读取Environment中的value,此时用户如果更新了Environment中的值是会被实时读取到
2.fileListener中的onChangeEvent死循环应该加上开关,保证应用关闭时/springboot时,关闭这个死循环
Ⅱ. Describe what happened
If there is an exception, please attach the exception trace:
Just paste your stack trace here!
Ⅲ. Describe what you expected to happen
Ⅳ. How to reproduce it (as minimally and precisely as possible)
- xxx
- xxx
- xxx
Ⅴ. Anything else we need to know?
Ⅵ. Environment:
- JDK version :
- OS :
- Others:
1条答案
按热度按时间camsedfj1#
pls assign to me