refactor:update registry status.

pull/1487/head
Haotian Zhang 9 months ago
parent 74e34e1fac
commit 039c23be3a

@ -129,6 +129,10 @@ public final class TsfCoreEnvironmentPostProcessor implements EnvironmentPostPro
defaultProperties.put("spring.cloud.polaris.discovery.zero-protection.enabled", "true");
defaultProperties.put("spring.cloud.polaris.discovery.zero-protection.is-need-test-connectivity", "true");
defaultProperties.put("spring.cloud.discovery.client.health-indicator.enabled", "false");
String warmupEnabled = environment.getProperty("spring.cloud.polaris.warmup.enabled");
if (StringUtils.isBlank(warmupEnabled)) {
defaultProperties.put("spring.cloud.polaris.warmup.enabled", true);
}
// contract
defaultProperties.put("spring.cloud.polaris.contract.enabled", environment.getProperty("tsf.swagger.enabled", "true"));

Loading…
Cancel
Save