fix: fix TSF context bootstrap configuration (#1424)

pull/1426/head
Fishtail 3 months ago committed by GitHub
parent cc927d611a
commit 5848bfccfa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -31,3 +31,4 @@
- [feat:support TSF router.](https://github.com/Tencent/spring-cloud-tencent/pull/1420)
- [feat:upgrade nearby router and add namespace nearby router.](https://github.com/Tencent/spring-cloud-tencent/pull/1421)
- [fix:fix contract reporting bug when using TSF.](https://github.com/Tencent/spring-cloud-tencent/pull/1422)
- [fix: fix TSF context bootstrap configuration](https://github.com/Tencent/spring-cloud-tencent/pull/1424)

@ -17,13 +17,11 @@
package com.tencent.cloud.polaris.context.tsf.consul;
import com.tencent.cloud.polaris.context.config.PolarisContextAutoConfiguration;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
@Configuration(proxyBeanMethods = false)
@Import({PolarisContextAutoConfiguration.class, TsfConsulAutoConfiguration.class})
@Import({TsfConsulAutoConfiguration.class})
public class TsfConsulBootstrapConfiguration {
}

@ -59,7 +59,8 @@ public final class TsfCoreEnvironmentPostProcessor implements EnvironmentPostPro
String tsfAppId = environment.getProperty("tsf_app_id");
if (StringUtils.isNotBlank(tsfAppId)) {
Map<String, Object> defaultProperties = new HashMap<>();
// enable polaris as default
defaultProperties.put("spring.cloud.polaris.enabled", "true");
// tsf_application_id
String tsfApplicationId = environment.getProperty("tsf_application_id");
if (StringUtils.isBlank(tsfApplicationId)) {

Loading…
Cancel
Save