Caused by: java.lang.IllegalStateException: Method findByApplicationName can only contain 1 method field. Found: []
at feign.Util.checkState(Util.java:117) ~[feign-core-8.15.1.jar:8.15.1]
at org.springframework.cloud.netflix.feign.support.SpringMvcContract.checkOne(SpringMvcContract.java:180
我们正在使用netflix假装调用restful web服务。对于修补程序请求,似乎不支持修补程序请求。
由: feign.FeignException.errorExecuting(FeignException.java:66):无效的HTTP方法引起:修补程序执行修补程序{uid}/projects/{guid} at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:100) at feign.SynchronousMethodHandler.executeAndDecode(Sy
我正在使用spring-cloud的feignClient,当我的界面中有多个Beans参数时,事情就会出错,错误显示如下:
Caused by: java.lang.IllegalStateException: Method has too many Body parameters: public abstract com.wxl.pros.test.web.common.CommonResObject com.wxl.pros.test.web.feign.OrderFeignClient.createOrder(com.wxl.pros.test.services.form.order.
我已经在JHipster中设置了网关微服务配置,但是我似乎无法使用FeignClient使微服务与网关通信
一切都很好,直到我开始遵循这些说明,使用https服务器作为网关。
微服务如下所示:
@RestController
@RequestMapping("/api")
public class MicroserviceResource {
private final GatewayFeignClientProxy feignClient;
public MicroserviceResource(GatewayFeignClientProxy feignCl
我正在尝试让docker在我的AWS上运行,并使用docker-compose。我运行了一个maven构建,所有的构建都成功了,但是当我执行docker-compose时,我得到了这个假异常,说我的businessDelegate没有自动装配,因为我的feign服务得到了一个参数0
下面是我的委托类
@Component
public class BusinessDelegateImpl implements BusinessDelegate{
private ShippingService shippingService;
@Autowired
public void s
我想在没有客户端负载均衡器Ribbon的情况下使用Feign,因为我不想运行Eureka,因为Eureka需要分布式和高可用性。相反,具有由Route53管理的内部DNS名称的内部ELB将做得很好。
向@FeignClient提供纯URL总是会导致no loadbalancer found for ..,所以我尝试阻止Feign使用Ribbon:
Spring Cloud Netflix附带了FeignRibbonClient,如果存在来自ribbon-loadbalancer的ILoadBalancer,则会使用它。但是,如果排除此依赖项,则FeignConfiguration将中断:
Be
在我们的服务中,我们正在为我们的客户使用假名。最近,其中一个服务开始随机抛出一些由以下原因引起的异常:
Caused by: java.lang.NullPointerException: null
at org.springframework.cloud.netflix.feign.ribbon.LoadBalancerFeignClient.execute(LoadBalancerFeignClient.java:63)
at org.springframework.cloud.sleuth.instrument.web.client.feign.TraceLoadBala
我正在编写的微服务需要与我们平台上的其他微服务进行通信。在这一尝试中,对我们来说理想的解决方案是Spring假装,并植入了一个
然而,当我尝试一个@Autowired ReviewProvider时,我将面临下面的异常
异常(原因)
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.cloud.netflix.feign.FeignContext' available
at
我正在使用spring cloud的eureka和feign在一些服务之间通信(比方说A和B)。现在我想对我的单个服务(A)的服务层进行单元测试。问题是,这个服务(A)使用一个假客户端来请求另一个服务(B)的一些信息。
在没有任何特殊配置的情况下运行单元测试会抛出以下异常:java.lang.RuntimeException: com.netflix.client.ClientException: Load balancer does not have available server for client: service-b =>,但我不想让任何服务器运行。
我的问题是:有没有办法模
我使用的是spring boot 2.4.2和spring cloud 2020.0.1。我正在使用带有hystrix的openfeign作为断路器。我正在使用Eureka进行服务发现。功能按预期工作,但我无法让测试正常工作。它抛出一个异常,因为 [503] during [GET] to [http://simple-helloworld-api/api/v1/greet/Test?error=false] [HelloWorldFeignClient#greeting(String,Boolean)]: [Load balancer does not contain an instanc
我正在写一个来自here的关于Feign和Hystrix的例子。如果没有Feign回退属性,一切都会正常工作。但是,当我添加回退属性并创建实现feign clients接口的回退类时,我得到了以下错误 Description:
Field customerClient in com.feign.demo.controllers.CustomerController required a single bean, but 2 were found:
- customerClientFallback: defined in file [../ApplicationFeign/targ
我正在尝试与Consul和Feign一起建立一个spring cloud项目,但它不起作用。
它总是注明"com.netflix.client.ClientException:负载均衡器没有可用的服务器供客户端:设备-读取器使用“。下面是consumer的主类
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
public class Main {
public static void main(String[] args) throws Exception {
SpringApp