-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweb-dev.yml
More file actions
59 lines (51 loc) · 1.32 KB
/
Copy pathweb-dev.yml
File metadata and controls
59 lines (51 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
server:
port: 9002
feign:
circuitbreaker:
enabled: true
spring:
boot:
admin:
client:
url: http://localhost:7779
application:
name: myshop-web
rabbitmq:
host: 192.168.74.128 # rabbitmq所在虚机地址
port: 5672
username: guest
password: guest
virtual-host: /
springdoc:
swagger-ui:
path: /swagger-ui.html
eureka:
client:
register-with-eureka: true # 作为客户端需要注册到Eureka
fetch-registry: true # 作为客户端需要从Eureka获取注册信息
service-url: # 客户端注册地址
defaultZone: http://localhost:8888/eureka
instance:
# 优先使用该服务的IP地址注册到Eureka,在生产环境建议改为true
prefer-ip-address: true
myshop-user:
ribbon:
NFLoadBalancerRuleClassName: com.netflix.loadbalancer.RandomRule
management:
endpoints:
web:
exposure:
include: "*" # 暴露所有监控端点
endpoint:
health:
show-details: always
resilience4j:
circuitbreaker:
configs:
default:
# 只要有 2 次请求,就开始计算错误率
sliding-window-size: 5
# 错误率达到 10% 就跳闸
failure-rate-threshold: 10
# 强制开启最小调用次数
minimum-number-of-calls: 2