diff --git a/spring-cloud-starter-tencent-polaris-discovery/src/test/java/com/tencent/cloud/plugin/lossless/LosslessRegistryAspectTest.java b/spring-cloud-starter-tencent-polaris-discovery/src/test/java/com/tencent/cloud/plugin/lossless/LosslessRegistryAspectTest.java index ba05d6619..e594f8a3d 100644 --- a/spring-cloud-starter-tencent-polaris-discovery/src/test/java/com/tencent/cloud/plugin/lossless/LosslessRegistryAspectTest.java +++ b/spring-cloud-starter-tencent-polaris-discovery/src/test/java/com/tencent/cloud/plugin/lossless/LosslessRegistryAspectTest.java @@ -140,7 +140,7 @@ public class LosslessRegistryAspectTest { assertThatCode(() -> { assertThat(OkHttpUtil.checkUrl(HOST, LOSSLESS_PORT_1, "/online", Collections.EMPTY_MAP)).isFalse(); }).doesNotThrowAnyException(); - // delay register after 10s + // delay register after 5s Thread.sleep(10000); PolarisServiceRegistry registry = context.getBean(PolarisServiceRegistry.class); PolarisRegistration registration = context.getBean(PolarisRegistration.class); diff --git a/spring-cloud-tencent-examples/quickstart-example/quickstart-callee-service-a/src/main/resources/application.yml b/spring-cloud-tencent-examples/quickstart-example/quickstart-callee-service-a/src/main/resources/bootstrap.yml similarity index 100% rename from spring-cloud-tencent-examples/quickstart-example/quickstart-callee-service-a/src/main/resources/application.yml rename to spring-cloud-tencent-examples/quickstart-example/quickstart-callee-service-a/src/main/resources/bootstrap.yml diff --git a/spring-cloud-tencent-examples/quickstart-example/quickstart-callee-service-b/pom.xml b/spring-cloud-tencent-examples/quickstart-example/quickstart-callee-service-b/pom.xml index 0f3495e9e..0112b0063 100644 --- a/spring-cloud-tencent-examples/quickstart-example/quickstart-callee-service-b/pom.xml +++ b/spring-cloud-tencent-examples/quickstart-example/quickstart-callee-service-b/pom.xml @@ -23,7 +23,10 @@ org.springframework.boot spring-boot-starter-webflux - + + org.springframework.cloud + spring-cloud-starter-bootstrap + org.springframework.boot spring-boot-starter-actuator diff --git a/spring-cloud-tencent-examples/quickstart-example/quickstart-callee-service-b/src/main/resources/application.yml b/spring-cloud-tencent-examples/quickstart-example/quickstart-callee-service-b/src/main/resources/bootstrap.yml similarity index 100% rename from spring-cloud-tencent-examples/quickstart-example/quickstart-callee-service-b/src/main/resources/application.yml rename to spring-cloud-tencent-examples/quickstart-example/quickstart-callee-service-b/src/main/resources/bootstrap.yml diff --git a/spring-cloud-tencent-examples/quickstart-example/quickstart-caller-service/pom.xml b/spring-cloud-tencent-examples/quickstart-example/quickstart-caller-service/pom.xml index cc72331c6..679e26335 100644 --- a/spring-cloud-tencent-examples/quickstart-example/quickstart-caller-service/pom.xml +++ b/spring-cloud-tencent-examples/quickstart-example/quickstart-caller-service/pom.xml @@ -23,7 +23,10 @@ org.springframework.boot spring-boot-starter-web - + + org.springframework.cloud + spring-cloud-starter-bootstrap + org.springframework.boot spring-boot-starter-webflux diff --git a/spring-cloud-tencent-examples/quickstart-example/quickstart-caller-service/src/main/resources/application.yml b/spring-cloud-tencent-examples/quickstart-example/quickstart-caller-service/src/main/resources/bootstrap.yml similarity index 100% rename from spring-cloud-tencent-examples/quickstart-example/quickstart-caller-service/src/main/resources/application.yml rename to spring-cloud-tencent-examples/quickstart-example/quickstart-caller-service/src/main/resources/bootstrap.yml diff --git a/spring-cloud-tencent-examples/tsf-example/consumer-demo/src/main/resources/application.yml b/spring-cloud-tencent-examples/tsf-example/consumer-demo/src/main/resources/application.yml index eb7a01b09..b9ee2362d 100644 --- a/spring-cloud-tencent-examples/tsf-example/consumer-demo/src/main/resources/application.yml +++ b/spring-cloud-tencent-examples/tsf-example/consumer-demo/src/main/resources/application.yml @@ -11,7 +11,7 @@ feign: enabled: true #本地测试时打开 -#tsf_namespace_id: default_namespace +tsf_namespace_id: default_namespace logging: file: diff --git a/spring-cloud-tencent-examples/tsf-example/provider-demo/src/main/resources/application.yml b/spring-cloud-tencent-examples/tsf-example/provider-demo/src/main/resources/application.yml index d4ae0231b..160ba5d01 100644 --- a/spring-cloud-tencent-examples/tsf-example/provider-demo/src/main/resources/application.yml +++ b/spring-cloud-tencent-examples/tsf-example/provider-demo/src/main/resources/application.yml @@ -1,5 +1,5 @@ server: - port: 18081 + port: 56789 spring: application: name: provider-demo @@ -7,6 +7,7 @@ spring: import: optional:polaris cloud: polaris: + address: grpc://127.0.0.1:8091 namespace: default enabled: true stat: