1 Star 2 Fork 7

大目 / spring-cloud-yes-config-repo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
application-dev.yml 1.00 KB
一键复制 编辑 原始数据 按行查看 历史
limu.zl 提交于 2019-04-02 17:37 . DELETE 删除无用配置文件
## 共用配置,由于所有服务都整合了Sleuth,所以将其放在这里。
sleuth:
sampler:
# 默认是0.1,生产中强烈建议删除这一行。
percentage: 1.0
spring:
cloud:
consul:
discovery:
# 指定实例ID,如果不指定,那么默认是:${spring.application.name}:comma,separated,profiles:${server.port}
# 这意味着:如果没指定profile,那么多个实例的instance-id都是应用名称-端口,实例ID就会相同
instance-id: ${spring.application.name}:${spring.application.instance_id:${random.value}}
# 指定健康检查路径
health-check-path: /actuator/health
# 多久检查一次,例如:15s、1m
health-check-interval: 15s
host: 127.0.0.1
port: 8500
management:
endpoints:
web:
exposure:
include: '*'
endpoint:
health:
show-details: always
# 必须加上这部分配置,feign的Hystrix特性将无法生效
feign:
hystrix:
enabled: true
1
https://gitee.com/itmuch/spring-cloud-yes-config-repo.git
git@gitee.com:itmuch/spring-cloud-yes-config-repo.git
itmuch
spring-cloud-yes-config-repo
spring-cloud-yes-config-repo
master

搜索帮助