Skip to main content

All Questions

0 votes
0 answers
19 views

How to access same request in prefilter and postfilter in Spring Cloud Gateway?

We're moving from zuul to Spring Cloud Gateway. Storing all the request and response details in a table using pre-filter and post-filter implementation. Following is the implementation in zuul ...
Padmaja's user avatar
  • 119
0 votes
0 answers
102 views

How to create currentContext object in spring cloud gateway?

We have zuul 1 in which we have import com.netflix.zuul.context.RequestContext; through which we are getting currentContext. as return getCurrentContext().getRequest(); How to create similar ...
Sumit's user avatar
  • 1
3 votes
0 answers
751 views

Is it possible to replace Spring Cloud Netflix Zuul with Spring Cloud Gateway in an Spring MVC App?

I am working on a Spring Boot App, that uses Spring Cloud Zuul. Zuul is used for routing and for filters of the types PRE, POST, ROUTE and ERROR. Because of the EOL of Zuul I want to switch to another ...
marcel.s's user avatar
0 votes
0 answers
139 views

Spring Cloud - ZUUL API Gateway - uploading and downloading a csv (or any format) file?

Using Spring Boot, I have tested the method described here to download a csv file by hitting the backend api. Here the flow is simple: browser <--request/response--> backend api and the response ...
samshers's user avatar
  • 3,451
1 vote
0 answers
871 views

Can't start my spring boot application with Zuul Gateway [duplicate]

I'm trying to secure my spring boot applications using Zuul, the problem is when I try to start the application I get this exception: org.springframework.beans.factory.BeanCreationException: Error ...
Alex's user avatar
  • 119
1 vote
0 answers
305 views

Spring cloud gateway backend uri modification

Can someone please explain how spring-cloud-gateway routes the request ? Say I have following code public RouteLocator routeLocator(RouteLocatorBuilder builder) { return builder.routes() ...
Robert Don's user avatar
1 vote
0 answers
154 views

antMatchers hasRole throwing 403 access denied using spring cloud gateway

Initially I'm using zuul for gateway operations, now migrated to spring cloud gateway. After migrating getting access denied error with the below code. @Bean public SecurityWebFilterChain ...
Ananya's user avatar
  • 11
1 vote
0 answers
177 views

Declaring Routes in Code Using Only Zuul 2

I'm trying to declare routes in a Zuul 2 example project using code rather than a properties file. The example project was taken from here. I'd like to avoid using any Eureka, Spring, or Spring Cloud ...
kanai's user avatar
  • 33
2 votes
0 answers
594 views

Passing sensitive headers in Spring Cloud Gateway

I am migrating my application from Zuul to Spring Cloud Gateway. How can I replace the sensitive header part of below code in Spring Cloud Gateway? zuul: routes: tableau: path:/test/** ...
Anjan Krishna's user avatar
1 vote
0 answers
1k views

Alternative approach for Zuul and Spring Cloud gateway while upgrading to Spring 2.5.X

We are upgrading our project to Spring 2.5.X and it is not supporting Zuul gateway any longer. We don't want to opt for 'Spring Cloud Gateway' as we need to rewrite all code in Reactive (We have ...
Pranali's user avatar
  • 11
0 votes
1 answer
951 views

Implement security only at ZUUL Gateway

I have the below microservice architecture(spring boot ,java). I want to implement OAUTH2 JWT security at ZUUL gateway only and not replicate the security code in microservices . let say ...
Pale Blue Dot's user avatar
1 vote
1 answer
1k views

What's the Spring Cloud Gateway equivalent to Netflix Zuuls shouldFilter method?

I'm migrating from Netflix Zuul to Spring Cloud Gateway and can't find an equivalent to Netflix Zuuls shouldFilter method. Is there no equivalent? Netflix Zuul code I want to replace: @Override public ...
Swoot's user avatar
  • 1,354
0 votes
0 answers
109 views

Spring Cloud: How to manage request failure with Zuul

I'm working on a micro-service architecture and I'd like to manage all external traffic with an api gateway and monitor the requests failure of specific routes to generate an alert when third-party ...
jonn's user avatar
  • 780
9 votes
0 answers
3k views

How is Spring Cloud Gateway is different from Zuul-2

I want to understand the technical differences between Netflix Zuul2 and Spring Cloud Gateway. Spring Cloud Gateway is async so is Zuul2 Both support Http2 Both support Route filter (functional ...
SyntaX's user avatar
  • 2,100
1 vote
0 answers
1k views

Broken pipe (Write failed) gateway x service in request with images

So I have a gateway-api based on spring-cloud with netflix zuul and another api that receive a request with images. What it looks like, its big images are given me this exception, but I cant replicate,...
Thiago Cruz's user avatar

15 30 50 per page