spring cloud
有故事的驴
这个作者很懒,什么都没留下…
展开
-
Spring Cloud Netflix Eureka: 多网卡环境下Eureka服务注册IP选择问题
问题场景服务器上分别配置了eth0, eth1和eth2三块网卡,只有eth1的地址可供其它机器访问,eth0和eth2的 IP 无效。在这种情况下,服务注册时Eureka Client会自动选择eth0作为服务ip, 导致其它服务无法调用。问题原因由于官方并没有写明Eureka Client探测本机IP的逻辑,所以只能翻阅源代码。Eureka Client的源码在eureka-client模块下...转载 2018-06-01 10:38:35 · 310 阅读 · 0 评论 -
spring cloud feign不支持@RequestBody+ RequestMethod.GET,报错
1.问题梳理: 异常:org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'POST' not supported 很明显是最终feign执行http请求时把这个方法认定为POST,但feign client中又定义了RequestMethod.GET 或 @GetMapping,冲突导致...转载 2018-08-01 16:37:05 · 1505 阅读 · 1 评论