Skip to content

Commit

Permalink
refactor:update registry status.
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyeBeFreeman committed Dec 10, 2024
1 parent 7cd8fdb commit ba78f74
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ public void postProcessEnvironment(ConfigurableEnvironment environment, SpringAp
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"));
Expand Down

0 comments on commit ba78f74

Please sign in to comment.