微服务springcloud之feign和hystrix使用demo

上传者: yuyecsdn | 上传时间: 2021-03-08 11:25:49 | 文件大小: 5KB | 文件类型: 7Z
feign中包含了hystrix以及ribbon,即feign在不导入hystrix和ribbon的依赖下也能完成他们所能实现的功能,当然,如果想使用hystrix和ribbon自带的注解以及配置,必须导入依赖才可以,feign结合hystrix实现熔断+降级,大神必备神器,导入即用,无需更改配置和环境!

文件下载

资源详情

[{"title":"( 21 个子文件 5KB ) 微服务springcloud之feign和hystrix使用demo","children":[{"title":"microservice-consumer-movie-feign-with-hystrix","children":[{"title":".project <span style='color:#111;'> 598B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"resources","children":null,"spread":false},{"title":"java","children":null,"spread":false}],"spread":true},{"title":"main","children":[{"title":"resources","children":[{"title":"application.yml <span style='color:#111;'> 288B </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"itmuch","children":[{"title":"cloud","children":[{"title":"controller","children":[{"title":"MovieController.java <span style='color:#111;'> 616B </span>","children":null,"spread":false}],"spread":true},{"title":"entity","children":[{"title":"User.java <span style='color:#111;'> 888B </span>","children":null,"spread":false}],"spread":true},{"title":"feign","children":[{"title":"HystrixClientFallback.java <span style='color:#111;'> 389B </span>","children":null,"spread":false},{"title":"UserFeignClient.java <span style='color:#111;'> 836B </span>","children":null,"spread":false}],"spread":true},{"title":"ConsumerMovieFeignApplication.java <span style='color:#111;'> 693B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"target","children":[{"title":"classes","children":[{"title":"com","children":[{"title":"itmuch","children":[{"title":"cloud","children":[{"title":"controller","children":[{"title":"MovieController.class <span style='color:#111;'> 996B </span>","children":null,"spread":false}],"spread":true},{"title":"ConsumerMovieFeignApplication.class <span style='color:#111;'> 958B </span>","children":null,"spread":false},{"title":"entity","children":[{"title":"User.class <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false}],"spread":true},{"title":"feign","children":[{"title":"HystrixClientFallback.class <span style='color:#111;'> 1007B </span>","children":null,"spread":false},{"title":"UserFeignClient.class <span style='color:#111;'> 708B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"META-INF","children":[{"title":"MANIFEST.MF <span style='color:#111;'> 444B </span>","children":null,"spread":false},{"title":"maven","children":[{"title":"com.itmuch.cloud","children":[{"title":"microservice-consumer-movie-feign-with-hystrix","children":[{"title":"pom.properties <span style='color:#111;'> 337B </span>","children":null,"spread":false},{"title":"pom.xml <span style='color:#111;'> 1.69KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"application.yml <span style='color:#111;'> 288B </span>","children":null,"spread":false}],"spread":true},{"title":"test-classes","children":null,"spread":false}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.m2e.core.prefs <span style='color:#111;'> 90B </span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 243B </span>","children":null,"spread":false},{"title":"org.eclipse.core.resources.prefs <span style='color:#111;'> 191B </span>","children":null,"spread":false}],"spread":true},{"title":"pom.xml <span style='color:#111;'> 1.69KB </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明