首页 > TAG信息列表 > spring-cloud-feign

在没有Spring Cloud的情况下使用RibbonClient和Consul发现

我试图设置Feign来使用RibbonClient,比如MyService api = Feign.builder().client(RibbonClient.create()).target(MyService.class,“https:// myAppProd”);,其中myAppProd是我可以在领事中看到的应用程序.现在,如果我为Feign客户端使用Spring注释(@FeignClient(“myAppProd”),@

如何在Java Spring应用程序中缓存使用Netflix的Feign库进行的HTTP请求

在使用Netflix的Feign向服务发出HTTP请求的Spring启动应用程序中,是否有一种简单的方法可以自动缓存和返回这些缓存的值?缓存应基于传递给请求的参数(类似于记忆X分钟的函数). 我正在寻找下面的@Cache注释: @Component @FeignClient(value = "facebook", url = "${auth.facebook.url

Spring Cloud OpenFeign无法创建动态查询参数

Spring cloud openFeign无法创建动态查询参数.它抛出异常,因为SpringMvcContract尝试查找不存在的RequestParam值属性. java.lang.IllegalStateException: RequestParam.value() was empty on parameter 0 @RequestMapping(method = RequestMethod.GET, value = "/orders") Page