5,202 questions
0
votes
1
answer
18
views
spring-cloud-gateway-webflux multiple Path predicates return 404
I’m having trouble with Spring Cloud Gateway (WebFlux) when I define multiple Path predicates for a single route.
Here is an example of my configuration in application.yml:
spring:
cloud:
...
0
votes
0
answers
65
views
Spring Boot app using AWS Parameter Store does not reflect updated values even after container restart (requires redeployment)
I have a Spring Boot application running in a container.
I configured AWS Parameter Store integration using:
/application/env/version/1.0/SPRING_CONFIG_IMPORT = aws:parameterstore:/application/env/...
1
vote
0
answers
65
views
Could not instantiate KafkaProperties
I'm migrating from Spring Boot 2 to Spring Boot3, i'm NOT migrating to Sprinc Cloud 4 but i will stay to SpringCloud 3 (i know Spring Boot 3 is mandatory if you want to use Spring Cloud 4 but not the ...
0
votes
1
answer
78
views
Gateway Server WebFlux Native with actuator port throws "trustedProxies must not be empty"
I created a Spring Cloud Gateway Reactive project with Actuator and Native compile. I specified the actuator to run on separate port. I populated trustedProxies to permit to forwarded headers.
...
0
votes
1
answer
58
views
How to distinguish user Token and client Token authentication in Spring Security?
Scene description
I am developing a microservice system based on Spring Boot + OpenFeign + Spring Security, which needs to handle two different authentication scenarios:
Scene One: User Access Chain
...
1
vote
1
answer
146
views
Functional bean can't be recognized by Spring Function
I have two configuration classes with functional beans:
@Configuration
public class PositionReporter {
@Bean
public Supplier<Aircraft> reportPositions() {
return () -> new ...
3
votes
1
answer
167
views
Disable @PreAuthorize
I have a Spring Security configuration for permitting all requests:
@Configuration
@EnableWebSecurity
@Profile("no-auth")
public class NoAuthSecurityConfig {
private static final Logger ...
0
votes
0
answers
35
views
Issue with polling multiple s3 files usin netflix archaius aws jar
I am facing a peculiar problem related to polling of s3 file for changes using archaius jar. I have two s3 file in a single bucket and want to poll the files for any changes separately.
I used the ...
0
votes
0
answers
30
views
Order of precedence of environment properties with multiple property sources having same name
I am new to spring cloud config server and config client. I have a scenario where my config server application is fetching one single property (test.password) from two different sources - Cyberark (...
0
votes
0
answers
82
views
Spring Cloud OpenFeign: global configuration not being applied
I'm working on a project using Java 21, Spring Cloud OpenFeign, and Apache HttpClient 5. I'm trying to create a global configuration for all Feign clients and allow client-specific behaviors via ...
0
votes
1
answer
178
views
Spring cloud gateway MVC routing
I have updated my spring boot project from 2.x to 3.x
I used to use zuul filters, which become deprecated and not usable.
My service is serve as a gateway proxy and also as a backend resource service ...
1
vote
0
answers
139
views
Spring Boot Application Fails with java.lang.NoClassDefFoundError: jakarta/inject/Provider at Startup
I'm working on a Spring Boot application using Spring Cloud Netflix Eureka. When I try to run the application, I get the following error:
org.springframework.beans.factory.BeanCreationException: Error ...
1
vote
0
answers
140
views
Getting NoClassDefFoundError for HttpClientProperties after Spring Boot Version upgrade from 3.4.3 to 3.5.3
After version upgrade to parent pom from 3.4.3 to 3.5.3,
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
...
0
votes
0
answers
70
views
Spring Boot Admin not showing apps details
my Spring Boot Admin dashboard is not showing details about apps: no health, no JVM resources usage, no Actuators introspections... any.
Following are my configurations:
server conf:
spring.boot....
0
votes
1
answer
52
views
spring-cloud-deployer-kubernetes:2.9.5 and kubernetes-model-core:7.3.1
I want to use above versions together, but failing with error:
java.lang.NoSuchMethodError: 'io.fabric8.kubernetes.api.model.HTTPGetActionFluent io.fabric8.kubernetes.api.model.HTTPGetActionBuilder....
1
vote
0
answers
157
views
How to configure spirng gateway service/gateway service for spring gRPC?
I am using spring gateway service and eureka discovery server for rest calls. How to configure these services for spring gRPC?
0
votes
1
answer
123
views
Reading application client secrets using Spring Cloud Azure
I have an application using Spring Cloud Azure AD for Spring Security integration, and I want to read my application own configured client secret from Azure to get its expiration date. This data can ...
1
vote
1
answer
56
views
Spring Pulsar: Missing spring-pulsar-spring-cloud-stream-binder dependency
Problem
I'm setting up a Spring Boot application with Apache Pulsar integration using Spring Cloud Stream. When trying to build my project, I'm getting the following error:
auth-service:main: Could ...
0
votes
0
answers
21
views
Authentication with communication between Eureka and ApiGateway
Hello everybody i am facing very intersting issue... i try to let the register my API Gateway in the Eureka. If i am not use any Authentication it is working without any problem. But if I start the ...
1
vote
0
answers
110
views
Prevent Google Authentication when using spring.cloud.gcp.pubsub with emulator (locally)
this is my first time here, so I hope I am doing everything right...
I have a question that is puzzeling me for days now.
I am using pubsub in my application.
Locally I am using the emulator for ...
0
votes
0
answers
47
views
Spring Boot Service with dynamic port number cannot be accessible though Eureka Service Discovery is detecting it
Scenario:
I have a very simple spring boot micro service i.e. video-service with port number defined as 0 (to try the dynamic port assignment by service discovery) and it has a very simple GET /ping ...
0
votes
1
answer
312
views
Configure Max HTTP Connections on Spring Cloud Gateway MVC Route
I have an API Gateway server written with Sprint Boot 3 and Spring Cloud Gateway MVC (Spring Cloud 2024.0.1).
I am using Eureka for API Discovery (spring-cloud-starter-netflix-eureka-client), which ...
2
votes
0
answers
159
views
Spring Cloud Kubernetes Config Server spring.cloud.kubernetes.discovery.namespaces
I have a kind cluster running for which I added the Spring Cloud Kubernetes Config Server Deployment running in the config namespace.
I have a pod running my-service in the 'bar' namespace
When I exec ...
0
votes
1
answer
56
views
Local property YAML files are not included in a .jar executable files
I've created a config server by Spring Cloud Config. The project looks like this:
src
- main
- java
- com.my.configserver
- ConfigserverApplication.java
- resources
- ...
1
vote
1
answer
131
views
Spring Cloud Contract test fails after adding OpenFeign dependency
I'm working on a Spring Boot project using Spring Cloud Contract for consumer-driven contract testing. My setup was working fine with the following dependencies in the parent pom.xml:
spring-cloud-...
1
vote
1
answer
253
views
Spring RestTemplate is not finding recovery method
I have this org.springframework.web.client.RestTemplate code used in old Spring boot microservices configured to work with Eureka client/Server. I'm trying to make it work with org.springframework....
0
votes
0
answers
71
views
Spring Cloud Kubernetes does not reload properties from ConfigMap (watch and polling both fail to refresh)
I'm using Spring Boot 3.1.4 and Spring Cloud 2022.0.5 with the dependency:
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-...
1
vote
1
answer
264
views
Spring AI and Spring Cloud Compatibility Issue: JSON Parsing Error in OpenAI Chat Client
I have a working Spring AI project, but when I add dependencies for Spring Cloud (such as Eureka or Config Client), I get the following error when invoking the chat client.
Dependencies:
Spring Cloud ...
0
votes
0
answers
51
views
Why do I get two KubernetesClient beans only when running a native image?
I have a Spring Boot + Spring Cloud application that I'd like to build as a native image for faster startup time and smaller image size. I understand that Spring Cloud is not yet providing official ...
0
votes
1
answer
61
views
Avoid leadership grant on shutdown (Spring Cloud Kubernetes)
I have an application using the Spring Cloud Kubernetes leader election mechanism. When shutting down the pod, I would like to revoke leadership before the Spring graceful shutdown starts to ensure ...
1
vote
1
answer
148
views
Eureka server self registration issue
Im writing a microservice system and I have a config server component and a eureka server component. I am fetching the eureka server configurations from the config server. When I invoke the endpoint ...
0
votes
1
answer
259
views
Running out of ports when using Spring Boot Open Feign during performance test
I am encountering an issue in my project related to performance measurement using JMeter, where I need to use OpenFeign. When I start my benchmark after some time (around 15 seconds), I receive an ...
0
votes
0
answers
150
views
Gradle build is failing [Spring Cloud Contract Verifier Plugin exception: Process 'java17.exe' finished with non-zero exit value 1]
I'm trying to create a new consumer application using Gradle and spring contract stub runner.
I'm stuck on the error **Execution failed for task ':generateClientStubs'.
Spring Cloud Contract Verifier ...
0
votes
1
answer
83
views
java.lang.TypeNotPresentException: Type jakarta.servlet.http.HttpServletRequest not present with provided spring-boot-starter-tomcat dependency
Below are the logs which I'm getting while staring the application.
2025-03-02T07:31:00.628+05:30 WARN 13140 --- [configserver] [ main] s.c.a.AnnotationConfigApplicationContext : Exception ...
0
votes
1
answer
431
views
Problems loading Spring Cloud Secrets Manager
I've added the following to my Gradle project to load Spring's AWS Secret Manager features:
plugins {
id 'org.springframework.boot' version '3.4.3'
id 'io.spring.dependency-management' version ...
0
votes
0
answers
71
views
Is it possible to ignore unknown properties in payload in Spring Cloud Stream Kafka?
Is there a way to be able to ignore unknown properties of a payload and still deserialize it to the target class when using Spring Cloud Stream binder?
import org.springframework.messaging.Message;
......
0
votes
0
answers
74
views
Rest call from API Gateway is not working
In Microservice Environment,
I have 3 services:
Hotel Service
Service registry
APi Gateway
I have register the Hotel Service & API gateway with eureka server. Both are working, as I can see the ...
1
vote
0
answers
137
views
Scaling Spring Cloud Gateway with Eureka and Multiple Services
I have a Spring Boot Cloud Gateway, an Eureka Server, and multiple microservices registered in Eureka. My goal is to ensure that my system can handle increased traffic efficiently. I have two ...
0
votes
0
answers
58
views
Spring cloud data flow ''Failed to start bean 'taskLifecycleListener'' error
I am trying to run a Spring Batch task in Spring Cloud Data Flow (SCDF), but every time I execute it, the task status remains unknown, and I get the following error in the logs:
stdout:
. ____ ...
0
votes
0
answers
42
views
How to read specific config file from Spring Cloud Config?
first, i'm sorry my english is not good
for example, i have 4 config file in repository
application1-profile1.yml
application1-profile2.yml
application2-profile1.yml
application2-profile2.yml
and my ...
0
votes
0
answers
142
views
Automatic Context Propagation fails to work with MDC logging in reactive API Gateway
We have developed our API Gateway using Spring Cloud Gateway framework based on reactive paradigm using below libraries:
Spring Boot: 3.2.0
Spring Cloud: 2023.0.0
Spring: 6.1.1
Spring Cloud Gateway: 4....
3
votes
1
answer
1k
views
The resilience4j circuitbreaker does not seems to work expected after the Spring Boot & Cloud dependencies upgrade
We are seeing an issue with resilience4j circuit breaker after a recent upgrade of Spring Boot & Cloud dependencies.
We upgraded the following below:
groupId
artifactId
old version
upgraded ...
1
vote
1
answer
198
views
AWS SQS and Spring pollTimeoutSeconds difference
I hava been reading about using pollTimeoutSeconds in @SqsListener from Spring Cloud AWS.
Look at this configuration:
@SqsListener(value = "my-queue", pollTimeoutSeconds = "10", ...
0
votes
0
answers
85
views
spring cloud gateway reactor context propagation not working
I am building a spring cloud gateway service.
We are expecting all our clients pass trace-id header value for each incoming request. Using this trace-id we would like tag all each request specific ...
1
vote
1
answer
299
views
Spring Cloud Bus Kafka: Ensuring All Instances Receive Events Without Unique Consumer Groups
I’m using Spring Cloud Config Server with Kafka to broadcast the RefreshRemoteApplicationEvent to all instances of an application, but currently, only one instance is receiving it. Here’s my setup:
A ...
0
votes
0
answers
26
views
AsyncRequestTimeoutException in thread-pool-bulkhead
I encounter an exception when using thread pool mode of resilience4j-bulkhead.
I encountered this exception while testing the maximum connection pool, which manifested as an error page when I first ...
0
votes
1
answer
60
views
Spring Cloud Hystrix Not Working on Server Side
I'm using Spring Cloud 2024.x and trying to implement Hystrix for service resilience.
Deploy Info:
spring cloud 2024.0.0
spring boot 3.4.1
spring-cloud-starter-netflix-eureka-client 4.2.0
spring-...
1
vote
1
answer
68
views
Spring Cloud Netflix Eureka: Adding server port to virtual hostname in request URL
I am following the 2nd edition book by Magnus Larsson. I am migrating my spring-boot micro-services (run using docker containers) to using Netflix Eureka for service discovery instead of relying on ...
0
votes
0
answers
35
views
openfeign fallbackFactory for springcloud version 2023.0.3 cannot be downgraded
I configured a openFeign FallbackFactory for a romote invoke,but it doesn't work when remote service is exception and return 500; Does anyone have the problem?
response:
{
"timestamp": &...
0
votes
0
answers
79
views
Public and private API definitions in Spring Cloud Gateway: static or database-driven?
I am using Spring Cloud Gateway and have implemented a RouteValidator class to secure my APIs. Currently, I define the public and private APIs statically in the code, like this:
public static final ...