1 Star 0 Fork 0

AmosWong/amos-mall-config

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
goodsweb-dev.yml 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
amoswong 提交于 2021-03-15 23:58 . update config
server:
port: 8084
spring:
application:
name: goods-page-service
thymeleaf:
cache: false
rabbitmq:
host: 127.0.0.1
username: /leyou
password: leyou
virtual-host: /leyou
redis:
host: 127.0.0.1
eureka:
client:
service-url:
defaultZone: http://127.0.0.1:10086/eureka
registry-fetch-interval-seconds: 5
instance:
instance-id: ${spring.application.name}:${server.port}
prefer-ip-address: true #当你获取host时,返回的不是主机名,而是ip
ip-address: 127.0.0.1
lease-expiration-duration-in-seconds: 10 #10秒不发送九过期
lease-renewal-interval-in-seconds: 5 #每隔5秒发一次心跳
ribbon:
ConnectTimeout: 4000 # 连接超时时间(ms)
ReadTimeout: 2000 # 通信超时时间(ms)
OkToRetryOnAllOperations: true # 是否对所有操作重试
MaxAutoRetriesNextServer: 1 # 同一服务不同实例的重试次数
MaxAutoRetries: 1 # 同一实例的重试次数
hystrix:
command:
default:
execution:
isolation:
thread:
timeoutInMillisecond: 10000 # 熔断超时时长:10000ms
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/amoswong/amos-mall-config.git
git@gitee.com:amoswong/amos-mall-config.git
amoswong
amos-mall-config
amos-mall-config
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385