I have a simple app that uses Netflix Zuul as an API gateway I added the Zuul dependency in the pom.xml file as follows: and @EnableZuulProxy for the main class of the app The problem is that whenever I try to run the API, It fails to start and shows in the console: Consider defining a bean of type ‘org.springframework.cloud.client.loadbalancer.reactive.DeferringLoadBalancerExchangeFilterFunction’
I have an request object, that contains a huge amount of data. But there is a filter in my code, where I need to take out just one element. At the moment I am Deserializing the whole object, which seems overkill to just get one element This is part of a zuul filter It seems over kill to deserialize an
I have JSON response from spring boot as, But I need this response as below, in brief, How can I modify the default parameters of returned response? is there any extra configuration I can set for that? thanks in advance Answer I guess you’re using spring data page so just create an implementation of JsonSerializer eg.
How it is possible to read a response body while using Zuul as a proxy in post filter? I am trying to call the code like this: Answer I’ve managed to overcome this. The solution consists of 4 steps: Read ctx.getResponseDataStream() into a ByteArrayOutputStream Copy OutputStream to 2 InputStreams. Use one of it for your custom purposes. Use the second