代码拉取完成,页面将自动刷新
server:
port: 8781
#指定注册中心地址
eureka:
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka/
#服务的名称
spring:
application:
name: order-service
redis:
database: 0
host: 127.0.0.1
port: 6379
timeout: 2000
#配置zipkin
zipkin:
base-url: http://192.168.0.106:9411/
#配置采样百分比
sleuth:
sampler:
probability: 1
rabbitmq:
host: 192.168.0.106
port: 5672
username: guest
password: guest
#自定义负载均衡策略
# product-service:
# ribbon:
# NFLoadBalancerRuleClassName: com.netflix.loadbalancer.RandomRule
#修改调用超时时间
feign:
hystrix:
enabled: true
client:
config:
default:
connectTimeout: 2000
readTimeout: 2000
#调整策略一 把hystrix超时时间禁用 enabled一定不要禁用
#hystrix:
# command:
# default:
# execution:
# timeout:
# enabled: false
#execution.isolation.thread.timeoutInMilliseconds
#调整策略二 超时时间调整
hystrix:
command:
default:
execution:
isolation:
thread:
timeoutInMilliseconds: 2000
#断路器Dashboard监控仪表盘配置文件增加endpoint
#暴露全部监控信息
management:
endpoints:
web:
exposure:
include: "*"
env: test2019
branch: master
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。