分发微服务中的fegin 调用到了模板微服务,但是还是走hystrix

来源:4-3 Eureka Server 的启动说明

慕运维0184815

2019-12-25

分发微服务中的fegin 调用到了模板微服务,
查看模板微服务进行了查询,并且有数据,但是分发微服务中 TemplateClient 还是走到了hystrix ,有什么原因?
目前一执照不到原因

2019-12-25 14:19:50.826  INFO 14460 --- [io-7002-exec-10] c.i.c.controller.UserServiceController   : acquire template: {"templateSDK":{"category":"001","desc":"这是第四张优惠券","id":4,"logo":"http://www.imooc.com","name":"优惠券04","productLine":1,"rule":{"discount":{"base":199,"quota":20},"expiration":{"deadline":1580398802000,"gap":1,"period":1},"limitation":1,"usage":{"city":"桐城市","goodsType":"[1,3]","province":"安徽省"},"weight":"[]"},"target":1},"userId":10001}
2019-12-25 14:19:50.893 ERROR 14460 --- [upon-template-6] c.i.c.f.hystrix.TemplateClientHystrix    : [eureka-client-coupon-template] findIds2TemplateSDK request error
2019-12-25 14:19:50.893 ERROR 14460 --- [io-7002-exec-10] c.i.coupon.service.impl.UserServiceImpl  : can not acuiretemplate from templateClient:4
写回答

1回答

张勤一

2019-12-25

同学你好:

    可以加下 QQ 群详细的说明下吧,这些信息无法判断任何问题。


    欢迎来 QQ 群随时交流、讨论,也非常感谢同学的支持!

1
0

Spring Cloud微服务实战 打造企业级优惠券系统

微服务,SpringCloud,SpringBoot面试、毕设、

1203 学习 · 487 问题

查看课程