Skip to content

Commit d26a210

Browse files
fuyuwei01SkyeBeFreeman
authored andcommitted
fix: fix lane router property name. (#1789)
Signed-off-by: Haotian Zhang <928016560@qq.com>
1 parent 3ea2878 commit d26a210

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,5 @@
5151
- [fix: fix NacosDiscoveryRegistryAutoConfiguration and PolarisAuthAutoConfiguration still initiation when polaris disabled.](https://github.com/Tencent/spring-cloud-tencent/pull/1783)
5252
- [fix: fix cb rule no update bug.](https://github.com/Tencent/spring-cloud-tencent/pull/1786)
5353
- [feat: support traffic gray lane router](https://github.com/Tencent/spring-cloud-tencent/pull/1785)
54-
- [fix: fix NPE when application context is null #1787](https://github.com/Tencent/spring-cloud-tencent/pull/1787)
54+
- [fix: fix NPE when application context is null #1787](https://github.com/Tencent/spring-cloud-tencent/pull/1787)
55+
- [fix: fix lane router property name.](https://github.com/Tencent/spring-cloud-tencent/pull/1789)

spring-cloud-tencent-polaris-context/src/main/java/com/tencent/cloud/polaris/context/config/extend/tsf/TsfCoreEnvironmentPostProcessor.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,10 @@ public void postProcessEnvironment(ConfigurableEnvironment environment, SpringAp
183183
environment.getProperty("spring.cloud.polaris.router.namespace-router.enabled", "true"));
184184
defaultProperties.put("spring.cloud.polaris.discovery.all-recover-enabled",
185185
environment.getProperty("spring.cloud.polaris.discovery.all-recover-enabled", "false"));
186-
defaultProperties.put("spring.cloud.polaris.lane.router.enabled",
187-
environment.getProperty("spring.cloud.polaris.lane.router.enabled", "true"));
188-
defaultProperties.put("spring.cloud.polaris.lane.router.baseLaneMode",
189-
environment.getProperty("spring.cloud.polaris.lane.router.baseLaneMode", BaseLaneMode.EXCLUDE_ENABLED_LANE_INSTANCE.name()));
186+
defaultProperties.put("spring.cloud.polaris.router.lane-router.enabled",
187+
environment.getProperty("spring.cloud.polaris.router.lane-router.enabled", "true"));
188+
defaultProperties.put("spring.cloud.polaris.router.lane-router.baseLaneMode",
189+
environment.getProperty("spring.cloud.polaris.router.lane-router.baseLaneMode", BaseLaneMode.EXCLUDE_ENABLED_LANE_INSTANCE.name()));
190190
}
191191
}
192192

0 commit comments

Comments
 (0)