212,890 questions
1
vote
1
answer
32
views
Spring Boot and Log4J database appender problems
We have a situation where we need to write the logs from an app running in multiple pods on an OpenShift project to the database so I slapped together a quick database logging POC with log4j2, and got ...
Advice
0
votes
0
replies
8
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 ...
0
votes
0
answers
41
views
ThreadPoolTaskExecutor : on shutdown, threads not awaiting full completion
Problem with Spring's ThreadPoolTaskExecutor, @EnableAsync, AsyncConfigurer, @Async
The context
I have:
a very simple method to run asynchronously :
@Async
public void asyncMethod() {
System.out....
0
votes
0
answers
20
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 ...
1
vote
1
answer
24
views
Spring - RestClient - Http to POJO when information is only in headers?
I have a server that I make rest calls towards that returns part of its information through headers instead of putting it all in a body, sadly I do not own the code that runs on the server so I can't ...
Best practices
1
vote
1
replies
20
views
Principal authentication in Spring Security
is the HttpCookieAuth class a correct way to authorize user?
Spring security http only cookies authorization problem
3
votes
1
answer
53
views
Spring security http only cookies authorization problem
i have the following security config but it still triggers filter on a non security matched paths.
What's the problem here? Am i doing authentication correctly? I've tried reading docs but the writing ...
2
votes
1
answer
45
views
RestClientBuilder.baseUrl() method supports null parameters incorrectly flagged as @NonNull
I am seeing issues using Spring 7/Spring Boot 4 and JSpecify annotations where parameters to methods in the RestClient.Builder interface are tagged as "nonNull" when the implementations of ...
-5
votes
0
answers
57
views
After upgrading from spring boot 3.4.11 to 3.5.6 batch jobs are failing [closed]
I am getting the following error when batch job is running. This happens only after the upgrade.
org.springframework.orm.jpa.JpaSystemException: Unable to commit against JDBC Connection
at org....
Advice
0
votes
4
replies
41
views
How to handle tasks that depend on the outcome of other tasks
I have a list of items - for each item i want to send a message. But i don't want to loop through my list and send all the messages all at once - when message 1 sends successfully, I will have an ...
0
votes
1
answer
79
views
Sort query parameter has no effect when JSON property naming strategy is UpperCamelCase
I use Spring Data REST to expose CRUD endpoints for a JpaRepository. The endpoint on the collection resource provides page, size and sort query parameters. The issue is that sorting doesn't work for ...
0
votes
0
answers
86
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
87
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
102
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
79
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 ...