From 302935b70d0182ce4a03f210c5c19ee273b513b2 Mon Sep 17 00:00:00 2001 From: lepdou Date: Fri, 9 Sep 2022 16:02:24 +0800 Subject: [PATCH] optimize config demo (#582) --- .../tencent/cloud/polaris/config/example/ConfigController.java | 2 -- .../polaris-config-example/src/main/resources/bootstrap.yml | 1 - 2 files changed, 3 deletions(-) diff --git a/spring-cloud-tencent-examples/polaris-config-example/src/main/java/com/tencent/cloud/polaris/config/example/ConfigController.java b/spring-cloud-tencent-examples/polaris-config-example/src/main/java/com/tencent/cloud/polaris/config/example/ConfigController.java index 008ed33d5..b4fe1a3e7 100644 --- a/spring-cloud-tencent-examples/polaris-config-example/src/main/java/com/tencent/cloud/polaris/config/example/ConfigController.java +++ b/spring-cloud-tencent-examples/polaris-config-example/src/main/java/com/tencent/cloud/polaris/config/example/ConfigController.java @@ -18,7 +18,6 @@ package com.tencent.cloud.polaris.config.example; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; -import org.springframework.cloud.context.config.annotation.RefreshScope; import org.springframework.core.env.Environment; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @@ -29,7 +28,6 @@ import org.springframework.web.bind.annotation.RestController; * @author lepdou 2022-03-10 */ @RestController -@RefreshScope public class ConfigController { @Value("${timeout:1000}") diff --git a/spring-cloud-tencent-examples/polaris-config-example/src/main/resources/bootstrap.yml b/spring-cloud-tencent-examples/polaris-config-example/src/main/resources/bootstrap.yml index 30cdb0669..1f257a787 100644 --- a/spring-cloud-tencent-examples/polaris-config-example/src/main/resources/bootstrap.yml +++ b/spring-cloud-tencent-examples/polaris-config-example/src/main/resources/bootstrap.yml @@ -12,7 +12,6 @@ spring: groups: - name: ${spring.application.name} # group name files: [ "config/application.properties", "config/bootstrap.yml" ] # config/application.properties takes precedence over config/bootstrap.yml - refresh-type: refresh_context management: endpoints: web: