Feign is a java to http client binder inspired by Retrofit, JAXRS-2.0, and WebSocket. Feign's first goal was reducing the complexity of binding Denominator uniformly to http apis regardless of restfulness.
Questions tagged [feign]
493 questions
0
votes
2 answers
How to automatically initizlize the 'dispatcherServlet' the moment after the web app started in the spring boot application?
I am working on feign client with hystrix in a spring boot application. I started a eureka server and register two providers. In the feign client application I added the hystrix support. And when I request the service first time, I got the hystrix…
leo
- 543
- 1
- 6
- 17
0
votes
1 answer
query value contain `{aa%` cause feign returned http status code 400
I'm using feign in spring-cloud, I have got a problem.
This is my feign client def.
@FeignClient("food-service")
public interface FoodService {
@RequestMapping(value = {"/food"},method = {RequestMethod.GET})
List…
Dreampie
- 1,241
- 1
- 16
- 29
0
votes
1 answer
Modify Feign log behavior for specific exceptions
I have a spring controller that returns a custom-made exception.
However, I don't want that specific exception to cause a "Log.Error()"
Unfortunately, Feign logs it that way automatically.
Is there any way to change this behavior?
Thanks.
DougieHauser
- 476
- 5
- 14
0
votes
1 answer
bind feign target to guice
is there a way to bind a feign target to guice?
My usecase case is as follows:
I have a service, which can be either started in the same JVM or as a separate service.
if the service is started in same JVM, then I will bind it using Guice.
if the…
mihirg
- 813
- 1
- 8
- 27
0
votes
2 answers
Feign Client (In Non Web environment) to a RepostoryRestResource with HAL - is not valid use case?
Recently while working with feign client in a spring boot application (which in my case is not a web app) I see that the client is not able to de-serialize the object correctly . As pointed to me by by a colleague - it turned out to be due to the…
naav
- 121
- 8
0
votes
1 answer
Creating scalable solution without Futures?
Exploring the HTTP client binder Feign and I see that it does not support callback results (DeferredResults). How then would I handle creating a scalable endpoint for performing many time intensive tasks in parallel? Trying to avoid something like…
tgk
- 2,972
- 1
- 17
- 35
-1
votes
0 answers
Feign hystrix getinputstream long time
My server found one question, front request still time out .
alert hystrix time out
https://github.com/OpenFeign/feign/issues/1427
乐森林
- 1
- 2
-1
votes
1 answer
how to continue the program when there is exception while calling feign client api in java
public string prospect(List prospectRequest, String primaryClientId) {
if(p2p(primaryClientId)=="Success") {
for(ProspectRequest prospect : prospectRequest) {
p2p(prospect.getId());
}
// rest of…
Ashok Reddy
- 31
- 3
-1
votes
1 answer
can I use hystrix to call up a failed request again?
I have a feign client that sends one request to another microservice every 60 seconds. On this controller, I use the HystrixCommand annotation with a user configuration (just experimenting). I also have a fallback method in which I go into when the…
-1
votes
1 answer
Remove method name from posted comment
I made a code which add comments on my localhost:3000 but its parsing to much info i want to remove "commentModel" but if i remove it from CommentRq class i get errors
comment example:
{ "commentModel": { "comment": "komentarz", "date": "3/6/19…
p0l0
- 11
- 4
-1
votes
1 answer
FeignClient service name configure through application.properties not working
I am trying configure service name for FeignClient from application.properties.
It works when I hardcode my service name like below.
@FeignClient("userdetail-service")
public interface UserServiceClient {
@RequestMapping(
method=…
kcoder
- 1,701
- 2
- 18
- 39
-1
votes
2 answers
Automatically encode request body object into JSON
I'm using OpenFeign/feign to send API requests:
import feign.Body
import feign.Param
import feign.RequestLine
interface ApiServiceInterface {
@RequestLine("POST /container/{cid}/key/bulk")
@Body("{bulk}")
public void bulk(@Param("cid")…
MonkeyMonkey
- 796
- 1
- 4
- 16
-3
votes
1 answer
How does your project handle the situation when feign calls the remote method to return to null?
How does your project handle the situation when feign calls the remote method to return to null?
zhitang zhuang
- 1
- 1