seata fileListener should be turned off when SpringBoot is used

bqjvbblv  于 2个月前  发布在  Spring
关注(0)|答案(1)|浏览(46)
  • 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)

  1. xxx
  2. xxx
  3. xxx

Ⅴ. Anything else we need to know?

Ⅵ. Environment:

  • JDK version :
  • OS :
  • Others:

相关问题