Skip to content

Commit

Permalink
change application.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikliu committed Jun 20, 2024
1 parent 9a0a8eb commit 6cdedd4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6cdedd4

Please sign in to comment.