I'm using Spring cloud starter gateway 2.0.1.RELEASE along with Starter netflix hystrix. Is it possible to provide a HystrixCommand in route definition like below?.
builder.routes()
.route( r -> r.path("path")
.and().method(HttpMethod.GET)
.filters(f -> f.hystrix("myHystrixCommandName"))
.uri("/destination")
.id("route_1"));
My goal is to execute a fallback method without forwarding the request to a fallback uri. Also I cannot use static fallback uri option as I need path params and request params to determine the fallback response. Any help is highly appreciated!.
ServerHttpRequestas a parameter. It's a normal spring webflux app. - spencergibb