1 Star 0 Fork 0

denghc/spring-cloud-config-center

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
application-consumer-config.yml 1.59 KB
一键复制 编辑 原始数据 按行查看 历史
denghc 提交于 2020-03-15 19:03 . update application-consumer-config.yml.
# 新增一个属性
prefix: oneone++
# 配置dev环境
server:
port: 8201
spring:
profiles: dev
# 指定当前微服务对外暴露的名称
application:
name: config-consumer
main:
allow-bean-definition-overriding: true
eureka:
# 指定eureka服务中心
client:
service-url:
defaultZone: http://localhost:8001/eureka
hystrix:
command:
default:
execution:
isolation:
thread:
timeoutInMilliseconds: 5000
# 开启Feign对Hystrix的支持
feign:
hystrix:
enabled: true
client:
config:
default:
connectTimeout: 5000
readTimeout: 5000
info:
auth: denghc
app.name: spring-cloud-openfeign-consumer
app.desc: my first spring-cloud-openfeign-consumer app
company.name: www.denghc.com
company.addr: hangzhou china
---
# 配置test环境
server:
port: 8202
spring:
profiles: test
# 指定当前微服务对外暴露的名称
application:
name: config-consumer
main:
allow-bean-definition-overriding: true
eureka:
# 指定eureka服务中心
client:
service-url:
defaultZone: http://localhost:8002/eureka
hystrix:
command:
default:
execution:
isolation:
thread:
timeoutInMilliseconds: 5000
# 开启Feign对Hystrix的支持
feign:
hystrix:
enabled: true
client:
config:
default:
connectTimeout: 5000
readTimeout: 5000
info:
auth: denghc
app.name: spring-cloud-openfeign-consumer
app.desc: my first spring-cloud-openfeign-consumer app
company.name: www.denghc.com
company.addr: hangzhou china
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/denghc/spring-cloud-config-center.git
git@gitee.com:denghc/spring-cloud-config-center.git
denghc
spring-cloud-config-center
spring-cloud-config-center
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385