Skip to content

Commit

Permalink
change example (#181)
Browse files Browse the repository at this point in the history
Co-authored-by: fredrikliu <[email protected]>
  • Loading branch information
fredrikliu and fredrikliu authored May 14, 2024
1 parent 5b5a407 commit 9affe8f
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 85 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,46 @@ server:
spring:
application:
name: QuickstartCalleeService
# cloud:
# polaris:
# address: grpc://127.0.0.1:8091
# namespace: default
## enabled: true
# discovery:
# enabled: true
# register: true
# contract:
# exposure: true
# report:
# enabled: false
# stat:
# enabled: true
# port: 28083
# # pushgateway:
# # enabled: true
# # address: 127.0.0.1:9091
# config:
# address: grpc://127.0.0.1:8093
# auto-refresh: true
# groups:
# - name: ${spring.application.name}
# files: [ "config/callee.properties" ]
# ratelimit:
# enabled: true
# rejectRequestTipsFilePath: reject-tips.html
# maxQueuingTime: 500
# tencent:
# metadata:
# content:
# label1: value1
# region: huanan
#management:
# endpoints:
# web:
# exposure:
# include:
# - polaris-discovery
# - polaris-ratelimit
# - polaris-config
#label:
# key-value: user:zhangsan
cloud:
polaris:
address: grpc://127.0.0.1:8091
namespace: default
enabled: true
discovery:
enabled: true
register: true
contract:
exposure: true
report:
enabled: false
stat:
enabled: true
port: 28083
# pushgateway:
# enabled: true
# address: 127.0.0.1:9091
config:
address: grpc://127.0.0.1:8093
auto-refresh: true
groups:
- name: ${spring.application.name}
files: [ "config/callee.properties" ]
ratelimit:
enabled: true
rejectRequestTipsFilePath: reject-tips.html
maxQueuingTime: 500
tencent:
metadata:
content:
label1: value1
region: huanan
management:
endpoints:
web:
exposure:
include:
- polaris-discovery
- polaris-ratelimit
- polaris-config
label:
key-value: user:zhangsan
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,45 @@ server:
spring:
application:
name: QuickstartCalleeService
# cloud:
# polaris:
# address: grpc://127.0.0.1:8091
# namespace: default
# enabled: true
# discovery:
# enabled: true
# register: true
# contract:
# exposure: true
# report:
# enabled: false
# stat:
# enabled: true
# port: 28084
# # pushgateway:
# # enabled: true
# # address: 127.0.0.1:9091
# config:
# address: grpc://127.0.0.1:8093
# auto-refresh: true
# groups:
# - name: ${spring.application.name}
# files: [ "config/callee.properties" ]
# ratelimit:
# enabled: true
# maxQueuingTime: 500
# tencent:
# metadata:
# content:
# label1: value2
# region: huanan
#management:
# endpoints:
# web:
# exposure:
# include:
# - polaris-discovery
# - polaris-ratelimit
# - polaris-config
#label:
# key-value: user2:lisi
cloud:
polaris:
address: grpc://127.0.0.1:8091
namespace: default
enabled: true
discovery:
enabled: true
register: true
contract:
exposure: true
report:
enabled: false
stat:
enabled: true
port: 28084
# pushgateway:
# enabled: true
# address: 127.0.0.1:9091
config:
address: grpc://127.0.0.1:8093
auto-refresh: true
groups:
- name: ${spring.application.name}
files: [ "config/callee.properties" ]
ratelimit:
enabled: true
maxQueuingTime: 500
tencent:
metadata:
content:
label1: value2
region: huanan
management:
endpoints:
web:
exposure:
include:
- polaris-discovery
- polaris-ratelimit
- polaris-config
label:
key-value: user2:lisi
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@
<relativePath/>
</parent>

<packaging>jar</packaging>
<version>1.7.0</version>
<artifactId>caller-service</artifactId>
<name>Quickstart Caller Service</name>

<properties>
<spring.cloud.version>Hoxton.SR12</spring.cloud.version>
<spring.cloud.tencent.version>1.14.0-Hoxton.SR12-SNAPSHOT</spring.cloud.tencent.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<modules>
<module>quickstart-examples</module>
<module>gray-release-examples</module>
<module>circuitbreaker-examples</module>
</modules>

</project>

0 comments on commit 9affe8f

Please sign in to comment.