pull/1471/head
shedfreewu 10 months ago
parent 07b544370f
commit 73f1c2a796

@ -45,9 +45,6 @@ public @interface ConditionalOnTsfConsulEnabled {
@Override
public boolean matches(ConditionContext conditionContext, AnnotatedTypeMetadata annotatedTypeMetadata) {
Environment environment = conditionContext.getEnvironment();
if (Boolean.TRUE.toString().equals(environment.getProperty("tsf_consul_enable"))) {
return true;
}
boolean tsfConsulEnable = false;
String tsfAppId = environment.getProperty("tsf_app_id");

@ -109,8 +109,6 @@ public final class TsfCoreEnvironmentPostProcessor implements EnvironmentPostPro
LOGGER.error("tsf_namespace_id is empty");
}
defaultProperties.put("tsf_consul_enable", "true");
// context
defaultProperties.put("spring.cloud.polaris.enabled", "true");
defaultProperties.put("spring.cloud.polaris.discovery.enabled", "false");

Loading…
Cancel
Save