150,255 questions
Score of -1
0 answers
36 views
How does OAuth2AuthorizedClientManager handle concurrent token refresh in Spring Security?
I'm using Spring Boot 4.x / spring-boot-starter-oauth2-client with AuthorizedClientServiceOAuth2AuthorizedClientManager and InMemoryOAuth2AuthorizedClientService using the client-credentials grant.
My ...
Score of -4
0 answers
49 views
How to Implement OAuth 2.0 for Service-to-Service Communication in Spring Boot Microservices? [closed]
I have a Spring Boot microservices project where service-to-service communication is currently secured using a client-id and client-secret generated by an authentication service.
The problem is that ...
Score of 1
0 answers
65 views
Spring Boot 4.1.1 Micrometer tracing context is not propagated via gRPC
I use Spring Boot 4.1.1 with OTEL org.springframework.boot:spring-boot-starter-opentelemetry and gRPC org.springframework.boot:spring-boot-starter-grpc-client/server starters. In my project two ...
Score of 0
0 answers
50 views
Spring Boot Camel SFTP Consumer: How to apply setgid permissions to all directories created by SFTP autoCreate?
I'm using Apache Camel SFTP consumer in Spring boot application to poll files from a remote directory and create nested directory structures.
When using chmodDirectory in the camel uri for consumption ...
Score of 0
0 answers
102 views
Informix Driver for Spring
I am currently using:
<informix-driver.version>15.0.1.4</informix-driver.version>
for my Spring Boot application. I have a bug in combination with another library (APM - Application ...
Score of 1
1 answer
115 views
Custom exception not caught by @RestControllerAdvice [closed]
I have a custom exception QuantityViolationException which I throw from a service method. I have a @RestControllerAdvice with a matching @ExceptionHandler for it, but instead of my handler returning ...
Score of 0
1 answer
121 views
Where to place a validation rule that depends on data from another table in a DDD Spring Boot app?
I have a Spring Boot app structured with a domain layer that is kept free of persistence dependencies. I'm trying to place a validation rule and can't find a clean home for it.
Domain model
...
Score of -1
0 answers
42 views
Conflicting dependencies between jackson and spring-hateoas:
I am using spring-boot-dependencies 3.5.16 to manage spring dependencies.
implementation(platform("org.springframework.boot:spring-boot-dependencies:3.5.16"))
This defines
<spring-...
Score of 1
0 answers
338 views
How to use Hibernate StatelessSession with open-in-view
We would like to use Hibernate StatelessSession injected into our Spring Data JPA repositories. Our understanding is this requires HibernateTransactionManager and SharedSessionCreator....
Score of 0
1 answer
123 views
Is there a reliable way to detect if a click had a real effect when app listeners may be attached later?
I'm building a Selenium based runner where non-technical users compose their own tests. Since the tests may target different web applications, I can't really rely on app specific assertions after a ...
Score of 0
1 answer
54 views
How to discard a message from inside a MessageConverter
It would be nice to be able to discard a message (ack it) without processing from inside the MessageConverter, but I have not been able to find a clean way to do it.
My current solution is to return ...
Score of 0
2 answers
93 views
Handling image data over WebSocket in Spring Boot
I am building a shooting game. The phone is connected to the server through WebSocket. On the client side, when the player hits "shoot", the phone will capture a picture and get the current ...
Score of 1
1 answer
73 views
can't find org.springframework.kafka.core.reactive.ReactiveKafkaConsumerTemplate
I'm building a springboot kafka app. While building a kafka consumer, I can't import org.springframework.kafka.core.reactive.ReactiveKafkaConsumerTemplate because this class can't be found.
I have ...
Score of 1
1 answer
92 views
Where can I find all the dependencies specified by Spring Boot's bill of materials?
Spring Boot provides a Maven bill of materials (BOM), that specifies the recommended versions of various Spring Boot dependencies. Some of these dependencies are Spring Boot starters such as org....
Score of 0
3 answers
214 views
JUnit Test cases failing after upgrading to Gradle 9, Springboot 4 and Java 25
After upgrading all the junit test cases which have dependency on spring-web are failing. Dependency analyzer shows that this artifact is not in the TestRuntimeClasspath scope and I am suspecting that ...