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 new file mode 100644 index 00000000..a0876ddf --- /dev/null +++ b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/consumer/src/main/resources/application.properties @@ -0,0 +1,27 @@ +#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.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 +# +#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 +#spring.main.allow-circular-references=true \ No newline at end of file diff --git a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/consumer/src/main/resources/application.yaml b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/consumer/src/main/resources/application.yaml deleted file mode 100644 index 2ab5384b..00000000 --- a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/consumer/src/main/resources/application.yaml +++ /dev/null @@ -1,32 +0,0 @@ -#server: -# port: 65101 -# -#spring: -# application: -# name: service-consumer-2023 -# cloud: -# nacos: -# discovery: -# enabled: false -# server-addr: 127.0.0.1:8848 -# config: -# enabled: false -# serverAddr: 127.0.0.1:8848 -# username: 'nacos' -# password: 'nacos' -# main: -# allow-bean-definition-overriding: true -## config: -## import: -## - nacos:service-consumer-2023.properties?refreshEnabled=true -#management: -# endpoint: -# health: -# show-details: always -# endpoints: -# web: -# exposure: -# include: '*' -#logging: -# level: -# com.alibaba.cloud.nacos.configdata: debug \ No newline at end of file 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 new file mode 100644 index 00000000..e59c130d --- /dev/null +++ b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/consumer/src/main/resources/bootstrap.properties @@ -0,0 +1,27 @@ +server.port=65002 +spring.application.name=service-consumer-2022 +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.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 + +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 +spring.main.allow-circular-references=true \ No newline at end of file diff --git a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/consumer/src/main/resources/bootstrap.yaml b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/consumer/src/main/resources/bootstrap.yaml deleted file mode 100644 index 8555929f..00000000 --- a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/consumer/src/main/resources/bootstrap.yaml +++ /dev/null @@ -1,32 +0,0 @@ -server: - port: 65101 - -spring: - application: - name: service-consumer-2023 - cloud: - nacos: - discovery: - enabled: true - server-addr: 127.0.0.1:8848 - config: - enabled: true - serverAddr: 127.0.0.1:8848 - username: 'nacos' - password: 'nacos' - main: - allow-bean-definition-overriding: true -# config: -# import: -# - nacos:service-consumer-2023.properties?refreshEnabled=true -management: - endpoint: - health: - show-details: always - endpoints: - web: - exposure: - include: '*' -logging: - level: - com.alibaba.cloud.nacos.configdata: debug \ No newline at end of file diff --git a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/provider/src/main/resources/application.properties b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/provider/src/main/resources/application.properties new file mode 100644 index 00000000..31e75db7 --- /dev/null +++ b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/provider/src/main/resources/application.properties @@ -0,0 +1,18 @@ +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.enabled=true +spring.cloud.nacos.discovery.enabled=true +#spring.cloud.nacos.discovery.instance-enabled=true +#only register IPv4 instance +#spring.cloud.nacos.discovery.ip-type=IPv4 +#only register IPv6 instance +#spring.cloud.nacos.discovery.ip-type=IPv6 + +spring.cloud.nacos.username=nacos +spring.cloud.nacos.password=nacos + +management.endpoints.web.exposure.include=* +management.endpoint.health.show-details=always +spring.main.allow-circular-references=true \ No newline at end of file diff --git a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/provider/src/main/resources/application.yaml b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/provider/src/main/resources/application.yaml deleted file mode 100644 index fbf160f0..00000000 --- a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/provider/src/main/resources/application.yaml +++ /dev/null @@ -1,32 +0,0 @@ -server: - port: 65100 - -spring: - application: - name: service-provider-2023 - cloud: - nacos: - username: 'nacos' - password: 'nacos' - discovery: - enabled: true - server-addr: 127.0.0.1:8848 - config: - enabled: true - serverAddr: 127.0.0.1:8848 - username: 'nacos' - password: 'nacos' -# config: -# import: -# - nacos:service-provider-2023.properties?refreshEnabled=true -management: - endpoint: - health: - show-details: always - endpoints: - web: - exposure: - include: '*' -logging: - level: - com.alibaba.cloud.nacos.configdata: debug \ No newline at end of file diff --git a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/provider/src/main/resources/bootstrap.properties b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/provider/src/main/resources/bootstrap.properties new file mode 100644 index 00000000..31e75db7 --- /dev/null +++ b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/provider/src/main/resources/bootstrap.properties @@ -0,0 +1,18 @@ +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.enabled=true +spring.cloud.nacos.discovery.enabled=true +#spring.cloud.nacos.discovery.instance-enabled=true +#only register IPv4 instance +#spring.cloud.nacos.discovery.ip-type=IPv4 +#only register IPv6 instance +#spring.cloud.nacos.discovery.ip-type=IPv6 + +spring.cloud.nacos.username=nacos +spring.cloud.nacos.password=nacos + +management.endpoints.web.exposure.include=* +management.endpoint.health.show-details=always +spring.main.allow-circular-references=true \ No newline at end of file diff --git a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/provider/src/main/resources/bootstrap.yaml b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/provider/src/main/resources/bootstrap.yaml deleted file mode 100644 index 96483e5c..00000000 --- a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-2023-examples/quickstart-examples/provider/src/main/resources/bootstrap.yaml +++ /dev/null @@ -1,32 +0,0 @@ -#server: -# port: 65100 -# -#spring: -# application: -# name: service-provider-2023 -# cloud: -# nacos: -# username: 'nacos' -# password: 'nacos' -# discovery: -# enabled: false -# server-addr: 127.0.0.1:8848 -# config: -# enabled: false -# serverAddr: 127.0.0.1:8848 -# username: 'nacos' -# password: 'nacos' -## config: -## import: -## - nacos:service-provider-2023.properties?refreshEnabled=true -#management: -# endpoint: -# health: -# show-details: always -# endpoints: -# web: -# exposure: -# include: '*' -#logging: -# level: -# com.alibaba.cloud.nacos.configdata: debug \ No newline at end of file