36,073 questions with no answers
1
vote
0
answers
2k
views
@Controller Kafka Listener exception not caught by Exception handler @ControllerAdvice
I have a Kafka Listener marked with @Controller:
@KafkaListener(topics = "${binlookup.kafka.topic.insert}")
public BinInfoJsonDTO listenAndInsert(String binInfoJson, Acknowledgment ack) {
...
1
vote
0
answers
47
views
Cannot resolve method findRequiredField in ReflectionUtils
I am trying to update entity fields dynamically using reflection in a Spring Boot application.
I wrote the following code:
public EmployeeDTO updateEmployeeById(Long employeeId, Map<String, Object&...
1
vote
0
answers
140
views
Spring Framework 7 (Spring Boot 4) API Versioning feature not behaves as expected
I am trying to understand the new API Versioning feature introduced in Spring 7 and seems like something is not right. According to the spring documentation, if versioning is enabled and no version ...
1
vote
0
answers
601
views
Retry queue binding to RabbitMQ exchange
Using Spring-Boot with RabbitMQ I'm trying to create an exchange that can have n-number of queues, one for each of the microservices so each of them will get the same message.
Producer microservice ...
Advice
0
votes
0
replies
45
views
Using Spring Modulith for converting micro services to modular monolith
Context:
We started building the application with multiple micro services at first and now at a point where the application is more mature and changes are not frequent, lots of discussions were done ...
1
vote
0
answers
54
views
Spring Framework 7 (MVC): MappingJacksonValue deprecated - how to select JsonView dynamically per request
In Spring Framework 6 (Spring MVC), several of my @RestController endpoints return a MappingJacksonValue so I can set a Jackson serialization view dynamically based on the authenticated user’s group (...
2
votes
0
answers
527
views
OAuth2AuthorizedClientService implementations cache tokens per client principal
When configuring WebClient with a ServletOAuth2AuthorizedClientExchangeFilterFunction, we've found that both implementations provided for OAuth2AuthorizedClientService cache tokens in a way that make ...
1
vote
0
answers
258
views
build jar of spring mvc app PWC6117: File "null" not found
I have mvc app with struct:
-src
|-main (here java files)
|-resources (here only application.properties file)
|-webapp
|-css
|-js
|-img
|(jsp files)
I have not .xml files(besides pom....
0
votes
0
answers
122
views
Is there any sane way of using the Spring AI MCP Prompts between the Client and Server
I’m struggling to piece together how to seamlessly use the MCP Prompt from an MCP server to an MCP client, both using Spring AI 1.1.0.
The Problem:
The server returns a GetPromptResult that contains a ...
Advice
0
votes
0
replies
32
views
Spring Modulith architecture cycle problem
I have a fresh and minimal Spring boot 4 project with Spring Modulith which you can see here.
I have two modules User and Task. A User has zero or more Tasks. Both modules expose a MTO (Module ...
1
vote
0
answers
105
views
How to find fragment interface generic type
I am trying to create a custom generic repository using the fragment interface approach as described in this article: https://docs.spring.io/spring-data/jpa/reference/repositories/custom-...
1
vote
0
answers
103
views
Hazelcast 5.6.0 and client configuration
Our application is leveraging dependencies com.hazelcast:hazelcast and com.hazelcast:hazelcast-spring to connect to a Hazelcast cluster. In the process of upgrading their versions from 5.5.0 to 5.6.0, ...
0
votes
0
answers
118
views
Spring Cloud Gateway not routing requests to my microservice
I was following a tutorial that shows this application.properties for gateway configuration:
server.port=9000
spring.application.name=UserMS
spring.cloud.gateway.routes[0].id=UserMS
spring.cloud....
0
votes
0
answers
84
views
What is the ordering of actions performed using spring state machine?
I have a spring state machine that is tied to states of an object from another service, that is retrieved and updated using HTTP APIs. So, it's not a local database.
I'm thinking to use transition ...
2
votes
0
answers
106
views
Why should I return a Publisher instead of throwing an exception in Spring WebFlux?
In Spring WebFlux, when working with reactive streams , why is it recommended to return a Publisher (like Mono.error()) instead of throwing an exception directly within a stream?
I saw this question ...