19得票3回答
Feign和Spring Security 5 - 客户端凭证

我正在尝试从Feign客户端应用程序调用一些受客户端凭据授予类型保护的后端系统。可以使用以下curl结构(仅作为示例)检索来自后端系统的访问令牌:curl --location --request POST '[SERVER URL]/oauth/grant' \ --header 'Cont...

18得票1回答
Spring Cloud Feign非阻塞I/O或异步调用

我正在使用Spring Cloud平台开发微服务,其中service1调用多个其他微服务,例如service2、service3、service4等。这些服务可以并行调用,而service1将聚合结果。我可以使用Spring Cloud Feign(http://cloud.spring.io...

17得票2回答
Spring Boot找不到FeignClient。

以下为错误信息:*************************** APPLICATION FAILED TO START *************************** Description: Field helloAgent in com.example.client.c...

16得票7回答
Feign客户端和Spring重试

我有一个使用Spring Cloud Feign客户端调用外部服务的RESTful服务。@FeignClient(name = "external-service", configuration = FeignClientConfig.class) public interface Servi...

16得票1回答
@FeignClient接口上不允许使用@RequestMapping注解。

我遇到麻烦了!随着我的阅读,我发现这是因为它不再被接受了。但我该如何解决呢?这就是我一直在尝试映射的代码。@FeignClient(name = "product-service") @RequestMapping("api/products/") pu...

16得票6回答
@EnableFeignClients和@FeignClient在自动装配'FeignContext'时失败,导致NoSuchBeanException异常。

我正在编写的微服务需要与平台上的其他微服务进行通信。 在这次尝试中,对我们而言理想的解决方案是使用Spring Cloud Netflix Feign,实现@FeignClient。然而,当我尝试注入ReviewProvider时,遇到了以下异常:异常(原因)Caused by: org.sp...

15得票2回答
自动重试请求的HTTP状态码是什么?

我正在使用混合的 Spring-Cloud + feign + spring-retry 来帮助在客户端上重试请求(所有后端都是基于 Kotlin 的) 我的 Spring Boot 配置如下:myApp: ribbon: OkToRetryOnAllOperations: tr...

14得票3回答
SpringBoot FeignClient方法参数过多

我正在使用Spring Cloud的FeignClient,当我的接口中有多个Beans参数时出现问题,错误信息如下:Caused by: java.lang.IllegalStateException: Method has too many Body parameters: public ...

13得票2回答
Spring Boot 2 中的 FeignClient

我正在尝试从Spring Boot 1.5迁移到2.0,并遇到了问题:我将spring-cloud-netflix-core的版本从1.3.4.RELEASE更改为2.0.1.RELEASE: <dependency> <groupId>org.s...

13得票4回答
如何使用Spring Cloud Feign发送POST请求

这是我的 Feign 接口@FeignClient( name="mpi", url="${mpi.url}", configuration = FeignSimpleEncoderConfig.class ) public interface ...