spring-cloud
诸葛_瓜皮
这个作者很懒,什么都没留下…
展开
-
Spring Cloud 微服务间RPC使用 应用名称 替代 host:port
最近解决了一个困扰很久的问题,这方面资料几乎没有,so记录下来。使用Spring Cloud进行 微服务 开发,在微服务间进行远程调用时,为了更方便,同时也为了负载均衡,在 url 中使用 应用名称 替代 host:port这样的方式进行RPC原创 2017-06-04 23:28:59 · 10660 阅读 · 4 评论 -
Spring Cloud 中的断路器 hystrix
Spring Cloud 中使用断路器,是为了在远程调用失败时,可以有个备用的返回。 Spring Cloud对断路器支持很好,只需简单几步即可使用,下面进行说明。原创 2017-06-07 23:11:27 · 443 阅读 · 0 评论 -
关于 hystrix 的异常 fallback method wasn't found
在 Spring Cloud 中使用断路器 hystrix 后,可能会遇到异常:com.netflix.hystrix.contrib.javanica.exception.FallbackDefinitionException: fallback method wasn't found原创 2017-06-08 23:31:35 · 7389 阅读 · 0 评论 -
eureka.instance.appname 与 spring.application.name 的区别
eureka.instance.appname 与 spring.application.name 的区别原创 2017-06-09 23:10:08 · 26298 阅读 · 6 评论