## springcloud示例
Config-Server: http://code.goodrain.com/app/tpush_gr40d19a.git
Config-ServerDemo: http://code.goodrain.com/app/tpush_grbf6109.git
Hystrix: http://code.goodrain.com/app/tpush_gr231b6e.git
Ribbon: http://code.goodrain.com/app/tpush_gr6ec090.git
Zuul: http://code.goodrain.com/app/tpush_gr17e610.git
## 功能介绍
   对springcloud常用组件进行总结归纳,整理出相应的示例,方便广大爱好者去学习。
安装Eureka Server
* 全局配置文件使用
1、下载config-Server, 设置配置git地址
cloud:
config:
server:
git:
uri: http://code.goodrain.com/demo/springcloud-config.git
searchPaths: config
username: ""
password: ""
2、下载Config-ServerDemo 配置config-server的访问地址,就可以测试配置文件更新
* Hystrix使用
1、下载hystrix , 设置eureka-server 地址
* Ribbon 使用
1、下载ribbon , 设置eureka-server 地址
* Zuul使用
1、下载zuul , 设置eureka-server 地址
设置router
zuul:
ignoredServices: '*'
routes:
demo:
path: /demo/**
serviceId: demo-service
stripPrefix: false
sensitiveHeaders: Cookie,Set-Cookie,Authorization
user:
path: /user/**
serviceId: demo-service
stripPrefix: false
sensitiveHeaders: Cookie,Set-Cookie,Authorization
outer:
path: /baidu/**
url: http://www.baidu.com