Questions tagged [spring-cloud-feign]

Use this tag for question related to the use of Feign declarative REST client inside the spring cloud ecosystem.

Feign declarative REST client used inside the spring cloud ecosystem.

734 questions
0
votes
1 answer

Spring-cloud feign file upload

I am trying to upload a file with feign client in spring-boot application. I want to set encoder with the following condition: if (bodyType.equals(MultipartFile.class)){ // run multi-part logic } else { // Delegate to default encoder. } I am…
0
votes
0 answers

Package conflict when compiling a Java 9 module

I am trying to compile a simple module with a single direct dependency and I am getting many errors about packages that are read from 2 libraries. I am using the latest stable version of the libraries and I see that the package is split between…
0
votes
0 answers

is @EnableFeignClients @EnableCircuitBreaker conflict

I configured springboot application with @EnableFeignClients @SpringCloudApplication and get error java.lang.NoClassDefFoundError: com/netflix/hystrix/contrib/javanica/aop/aspectj/HystrixCommandAspect But if I change annotation to…
zhuochen shen
  • 1,673
  • 4
  • 16
  • 24
0
votes
1 answer

HystrixCodaHaleMetricsPublisher doesn't work in conjunction with spring-cloud-feign hystrix

I experienced a strange issue when using spring-cloud-feign in conjunction HystrixCodaHaleMetricsPublisher and Graphite. Metrics nodes were created but no data came in. My…
Roman T
  • 1,400
  • 5
  • 18
  • 31
0
votes
1 answer

netflix feign client - RequestMethod.POST submits empty json object to service

When i send a POST request using netflix client , the json properties are blank when it hits the service consumer. Below is my interface @FeignClient(name = "NLPService", configuration = FooConfiguration.class ) public interface NLPServiceConsumer…
lives
  • 1,243
  • 5
  • 25
  • 61
0
votes
1 answer

Feign + Consul: Enable only discovery (client), not registration (service)

Quoting the docs: @EnableDiscoveryClient make the app into both a Consul "service" (i.e. it registers itself) and a "client" (i.e. it can query Consul to locate other services). How can I configure a Spring Boot application that uses Feign as…
user3105453
  • 1,881
  • 5
  • 32
  • 55
0
votes
1 answer

How can I login to remote webservice from spring boot feign client

Hi I am new at feign client and outh2. I am using spring boot 1.5.6 . I want to login remote webservice which is I didn't write. This webservice uses outh2. I want to get access token from that web service to my feign client. My feign client like:…
renis
  • 171
  • 7
  • 16
0
votes
1 answer

Fallback method is not being called when rest call is failed by using feign client

I am trying to implement fallback by using Feign client but not getting success.Its a simplest code Please find below. Main Class @SpringBootApplication @EnableDiscoveryClient @RestController @EnableFeignClients public class EurekaClient1Application…
0
votes
1 answer

Feign Client ignoring request params

I created Feign Client: @FeignClient(name = "yandex",url="${yandex.ribbon.listOfServers}") public interface YandexMapsRestApiServiceClient { @RequestMapping(method = RequestMethod.GET, value = "{geoParam}") String …
0
votes
1 answer

Spring cloud Feign:no suitable HttpMessageConverter found for response type [class org.springframework.web.servlet.ModelAndView]

I have a service which has a url that return ModelAndView Object. In its own point, I can access the website. But when I use spring cloud feign to invoke that url, it comes out that no suitable HttpMessageConverter found for response type [class…
0
votes
1 answer

Feign client fails to load service

In my project, diffrent services are deployed as microservices and authorization and authentication is handled in a common jar file which added as a dependency in each micro-service project. The communication between microservice are done through…
Anoop M Nair
  • 1,057
  • 1
  • 13
  • 31
0
votes
1 answer

feign change the spring autowired priority

I have an interface called WordDao, an abstract class impl called WordDaoImpl. And some impl class extends that abstract class. I use same variable name when I inject them. ex: @Component("subjectService") public class SubjectDaoImpl extends…
min
  • 953
  • 1
  • 11
  • 23
0
votes
1 answer

Spring FeignClient getting NullPointer

I am creating a feign client. I am getting a null pointer exception on the client. To isolate the issue from my current project, I created a console app project with a feign client that access a public api like Github. I still got the same issue.…
alltej
  • 6,787
  • 10
  • 46
  • 87
0
votes
1 answer

Feign Client, Spring Boot Application, and rx/Observable Class Not Found Error

Some background: I have built two Spring Boot applications that are designed to be microservices. The first application (schedule provision) is a RESTful service that provides data for the other application (schedule checker). Therefore, there is a…
0
votes
0 answers

How to dynamically set @Bean at @Configuration in @Service?

I use spring cloud & feign client with my app.And I want to set the param 'accept-language' to headers when call feign clients. I found the similar questions at [Using @Headers with dynamic values in Feign client + Spring Cloud (Brixton…
Wentao Wan
  • 111
  • 1
  • 2
  • 8