apache / apache/incubator-seata

fileListener should be turned off when SpringBoot is used

Open
#3,801 1 comment 0 reactions 1 assignee Claimed by @selfishlover View on GitHub
task: help-wanted
Dominant language
Java
Stars
26k
Forks
8.8k
Avg merge
1d 8h
Merged PRs (30d)
4

Description

- [ ] I have searched the [issues](https://github.com/seata/seata/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:

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.