From 6cdedd4bc811099fb484f119a515d819555fecb3 Mon Sep 17 00:00:00 2001 From: fredrikliu Date: Thu, 20 Jun 2024 21:58:40 +0800 Subject: [PATCH] change application.yml --- .../src/main/resources/bootstrap.properties | 14 +------------- .../src/main/resources/bootstrap.properties | 2 +- .../src/main/resources/application.properties | 6 +++--- .../src/main/resources/bootstrap.properties | 12 ------------ .../src/main/resources/application.properties | 12 ------------ 5 files changed, 5 insertions(+), 41 deletions(-) diff --git a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2022-examples/quickstart-examples/consumer/src/main/resources/bootstrap.properties b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2022-examples/quickstart-examples/consumer/src/main/resources/bootstrap.properties index 44dcc14f..29cc2dbe 100644 --- a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2022-examples/quickstart-examples/consumer/src/main/resources/bootstrap.properties +++ b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2022-examples/quickstart-examples/consumer/src/main/resources/bootstrap.properties @@ -6,21 +6,9 @@ spring.cloud.nacos.config.server-addr=127.0.0.1:8848 spring.cloud.nacos.discovery.enabled=true spring.cloud.nacos.config.enabled=true spring.cloud.nacos.username=nacos -spring.cloud.nacos.password=uu3T2L9q +spring.cloud.nacos.password=nacos spring.cloud.nacos.discovery.fail-fast=true -feign.sentinel.enabled=true - -spring.cloud.sentinel.transport.dashboard=localhost:8080 -spring.cloud.sentinel.eager=true - -spring.cloud.sentinel.datasource.ds1.file.file=classpath: flowrule.json -spring.cloud.sentinel.datasource.ds1.file.data-type=json -spring.cloud.sentinel.datasource.ds1.file.rule-type=flow - -spring.cloud.sentinel.datasource.ds2.file.file=classpath: degraderule.json -spring.cloud.sentinel.datasource.ds2.file.data-type=json -spring.cloud.sentinel.datasource.ds2.file.rule-type=degrade spring.cloud.loadbalancer.nacos.enabled=true # use feign client in GraalVM environment need to set below config spring.cloud.refresh.enabled=false diff --git a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2022-examples/quickstart-examples/provider-a/src/main/resources/bootstrap.properties b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2022-examples/quickstart-examples/provider-a/src/main/resources/bootstrap.properties index 31e75db7..29dbdc7b 100644 --- a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2022-examples/quickstart-examples/provider-a/src/main/resources/bootstrap.properties +++ b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2022-examples/quickstart-examples/provider-a/src/main/resources/bootstrap.properties @@ -1,7 +1,7 @@ server.port=65001 spring.application.name=service-provider-2022 spring.cloud.nacos.discovery.server-addr=127.0.0.1:8848 -spring.cloud.nacos.config.server-addr=111.230.121.115:8848 +spring.cloud.nacos.config.server-addr=127.0.0.1:8848 spring.cloud.nacos.config.enabled=true spring.cloud.nacos.discovery.enabled=true #spring.cloud.nacos.discovery.instance-enabled=true diff --git a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/consumer/src/main/resources/application.properties b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/consumer/src/main/resources/application.properties index a0876ddf..a73f1e31 100644 --- a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/consumer/src/main/resources/application.properties +++ b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/consumer/src/main/resources/application.properties @@ -1,13 +1,13 @@ #server.port=65002 #spring.application.name=service-consumer-2023 #management.endpoints.web.exposure.include=* -#spring.cloud.nacos.discovery.server-addr=111.230.121.115:8848 -#spring.cloud.nacos.config.server-addr=111.230.121.115:8848 +#spring.cloud.nacos.discovery.server-addr=127.0.0.1:8848 +#spring.cloud.nacos.config.server-addr=127.0.0.1:8848 #spring.cloud.nacos.discovery.fail-fast=true #spring.cloud.nacos.discovery.enabled=true #spring.cloud.nacos.config.enabled=true #spring.cloud.nacos.username=nacos -#spring.cloud.nacos.password=uu3T2L9q +#spring.cloud.nacos.password=nacos # #feign.sentinel.enabled=true # diff --git a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/consumer/src/main/resources/bootstrap.properties b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/consumer/src/main/resources/bootstrap.properties index 98e9f0c1..3e476d36 100644 --- a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/consumer/src/main/resources/bootstrap.properties +++ b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/consumer/src/main/resources/bootstrap.properties @@ -9,18 +9,6 @@ spring.cloud.nacos.config.enabled=true spring.cloud.nacos.username=nacos spring.cloud.nacos.password=nacos -feign.sentinel.enabled=true - -spring.cloud.sentinel.transport.dashboard=localhost:8080 -spring.cloud.sentinel.eager=true - -spring.cloud.sentinel.datasource.ds1.file.file=classpath: flowrule.json -spring.cloud.sentinel.datasource.ds1.file.data-type=json -spring.cloud.sentinel.datasource.ds1.file.rule-type=flow - -spring.cloud.sentinel.datasource.ds2.file.file=classpath: degraderule.json -spring.cloud.sentinel.datasource.ds2.file.data-type=json -spring.cloud.sentinel.datasource.ds2.file.rule-type=degrade spring.cloud.loadbalancer.nacos.enabled=true # use feign client in GraalVM environment need to set below config spring.cloud.refresh.enabled=false diff --git a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-hoxton-examples/quickstart-examples/consumer/src/main/resources/application.properties b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-hoxton-examples/quickstart-examples/consumer/src/main/resources/application.properties index ad3cf2cd..b55e2a10 100644 --- a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-hoxton-examples/quickstart-examples/consumer/src/main/resources/application.properties +++ b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-hoxton-examples/quickstart-examples/consumer/src/main/resources/application.properties @@ -9,18 +9,6 @@ spring.cloud.nacos.discovery.enabled=true spring.cloud.nacos.username=nacos spring.cloud.nacos.password=nacos -feign.sentinel.enabled=true -spring.cloud.sentinel.transport.dashboard=localhost:8080 -spring.cloud.sentinel.eager=true - -spring.cloud.sentinel.datasource.ds1.file.file=classpath: flowrule.json -spring.cloud.sentinel.datasource.ds1.file.data-type=json -spring.cloud.sentinel.datasource.ds1.file.rule-type=flow - -spring.cloud.sentinel.datasource.ds2.file.file=classpath: degraderule.json -spring.cloud.sentinel.datasource.ds2.file.data-type=json -spring.cloud.sentinel.datasource.ds2.file.rule-type=degrade -spring.cloud.loadbalancer.nacos.enabled=true # use feign client in GraalVM environment need to set below config spring.cloud.refresh.enabled=false \ No newline at end of file