All Questions
Tagged with spring-cloud-gateway kotlin
19
questions
-1
votes
0
answers
21
views
Spring Cloud Gateway with Kubernetes discovery client for http and grpc requests
I'm trying to implement gateway service using Spring Cloud Gateway with k8s client dicovery that will redirect both http/1.1 and http/2(GRPC) requests
I set the following configurations:
server:
...
0
votes
0
answers
130
views
Spring security is not working in spring cloud gateway
I am trying to configure spring gateway using spring boot 3 version, java 17 version, and kotlin language.
However, it seems that the spring security settings are not applied.
as postman
POST
If I ...
0
votes
0
answers
19
views
Is it possible to change the URI dynamically on runtime in the filter?
Defining routes in the "yaml" file is pretty handy, and that makes our job easier until we come across defining multiple routes per URI.
Can the URI be changed in route by using filters?
I'm ...
1
vote
0
answers
788
views
how to modify multipart/form-data request body in Spring Cloud Gateway filter?
We are using spring cloud gateway to redirect request to relevant services. Right now we want to redirect upload request from legacy service to new microservice. So I need to change body content ...
1
vote
2
answers
3k
views
FeignClient error: url values must be not be absolute
I have an error when starting SpringBootApplication:
Unexpected exception during bean creation; nested exception is java.lang.IllegalArgumentException: url values must be not be absolute.
I'm a ...
1
vote
1
answer
457
views
Websocket request not routed through gateway global filter
Problem
I have setup a global filter for all requests that adds user information to the headers. This filter works for all my http requests but doesnt apply them to my websocket requests.
Questions
...
1
vote
1
answer
2k
views
How to get OriginalRequest from HTTP Request in ServerWebExchange
I am using Spring Cloud Gateway, and am trying to figure out how to get the "OriginalRequest" from the ServerWebExchange Request (so that I can use the URI).
I can see the OriginalRequest in ...
1
vote
1
answer
575
views
Incorrect sql generated by jooq on rare occasions
I have a spring cloud gateway application saving authentication data to db. Application runs in kubernetes. I have too different cases, sometimes I have json data to save and other times json data is ...
2
votes
2
answers
165
views
How to make kotlin spring boot app fail if a combination of configuration is present in it's application.yaml
I am having a microservice which is spring cloud gateway implementation in kotlin.
So as a part of a feature, i need to fail the start-up of this service if I found a specific combination of arguments ...
1
vote
1
answer
2k
views
Spring Cloud Gateway: Post Filter Web Client Request
We are using Spring Cloud Gateway in order to route requests to multiple underlying services. The calls to these underlying services will be sequential and potentially feed into one another (response ...
0
votes
1
answer
989
views
Issue setting up spring cloud gateway
I'm trying to set up spring cloud gateway for a test project but it keeps failing when i use the "lb://" url.
This is my pom.xml
<?xml version="1.0" encoding="UTF-8"?&...
4
votes
0
answers
1k
views
Spring Cloud Custom GatewayFilter - Modify Response POST filter with results from another client request inside filter
I have a POST Gateway filter that I want to modify the response body with the response of a separate webclient request within the gateway filter. I am able to get as far as sending the WebClient()....
1
vote
1
answer
3k
views
Spring Cloud Gateway Custom Filter : WebClient.create().post() causes hanging when testing
So I've created a custom filter that, when accessed, will create a webflux client and post to a predetermined url. This seems to work fine when running, but when testing this code the test is hanging (...
6
votes
1
answer
3k
views
ServletInitializer file is created every time I create spring boot project from spring.io
Every time I create a project from spring.io a ServletInitializer file is created inside the project. I only have the spring cloud gateway dependency. Is this the reason this file exists, and if yes, ...
0
votes
2
answers
234
views
Autowired parameter as bean declaration parameter
I have
@Bean
public RouteLocator gatewayRoutes(RouteLocatorBuilder builder) {
return builder.routes()
.route(r -> r.path("/employee/**")
...