We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6474fb6 commit b1ac366Copy full SHA for b1ac366
api/src/main/java/io/kafbat/ui/service/app/ConfigReloadService.java
@@ -15,6 +15,7 @@
15
import java.util.stream.StreamSupport;
16
import lombok.RequiredArgsConstructor;
17
import lombok.extern.slf4j.Slf4j;
18
+import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
19
import org.springframework.boot.context.properties.bind.Binder;
20
import org.springframework.boot.env.OriginTrackedMapPropertySource;
21
import org.springframework.boot.env.YamlPropertySourceLoader;
@@ -30,6 +31,7 @@
30
31
@Service
32
@RequiredArgsConstructor
33
@Slf4j
34
+@ConditionalOnProperty(value = "config.autoreload", havingValue = "true")
35
public class ConfigReloadService {
36
37
private static final String THREAD_NAME = "config-watcher-thread";
0 commit comments