150,694 questions
0
votes
0
answers
24
views
Push Notifications not working in my Vite + React + Spring Boot project (WebSockets, VAPID, AWS SNS, FCM all attempted)
I am trying to implement web push notifications in my project, but none of the approaches I tried are working. I’m not sure whether the issue is on the frontend, backend, service worker, or the push ...
1
vote
0
answers
27
views
IdempotencyBreachExceptionHandling in service used in kafka listener
I’m encountering an issue with possible idempotencyBreachException in a service used by Kafka listener.
I’m not entirely sure how to handle this situation correctly. I have a lockExecutor that locks a ...
-3
votes
0
answers
14
views
Link zkteco devices to Spring boot backend [closed]
I want to ask a question about zkteco devices
I develop a gym management app with react and Spring boot , the last point is to make the zkteco devices ask for action from the backend
Now i develop a ...
0
votes
1
answer
19
views
Jackson Mapping with Map<String, List<Object>>
I implemented a rest controller in my SpringBoot backend, which receives a json and maps it to an dto object via SpringBoots default Jackson configuration:
So we got:
The Rescontroller signed like ...
-1
votes
0
answers
28
views
Errors launching Spring Boot application with application configuration
I'm working on a Spring Boot application using IntelliJ IDEA. I can run the application locally with a Maven run configuration using the goal spring-boot:run, and it works as expected, I have also ...
0
votes
0
answers
41
views
Spring Data Elasticsearch adds new Date field as text in existing index mapping
I'm using Kotlin + Spring Boot 3.4.1 with spring-boot-starter-data-elasticsearch and Elasticsearch 8.12.2.
Existing document:
@Document(indexName = "crashes_summary")
data class CrashSummary(...
0
votes
0
answers
42
views
How to fix "ClassNotFoundException" when running Spring Boot jar built with Maven? [closed]
I built a Spring Boot application using Maven, and the project compiles without any errors. However, when I run the packaged jar using : java -jar target/myapp-0.0.1-SNAPSHOT.jar I get the following ...
-3
votes
0
answers
61
views
Is there a ready-made Java/Spring library with a predefined list of popular games for a dropdown? [closed]
I’m building a Java + Spring Boot application where users need to select a game from a dropdown menu.
Before I start building and maintaining the list manually, I’d like to know:
Is there any existing ...
1
vote
3
answers
85
views
“String value length exceeds maximum allowed” when uploading large file in JSON
I'm building a Spring Boot application where I'm trying to upload files or large content through a REST endpoint. The request is being rejected by Spring Boot with this warning:
...
Best practices
0
votes
1
replies
23
views
Is defining the same endpoints for web browser and m2m is bad practice? Why?
I am working on a project which has 2 types of communication. First, via the web browser through React. The second is M2M communication. I have 2 security filter chains for each.
I have secured the ...
0
votes
0
answers
48
views
401 Unauthorized error when submitting multipart/form-data without multipartfile
I'm a beginner working on a team project and currently creating a "board" page in React + Spring Boot.
I'm really confused because I keep getting a 401 Unauthorized error when submitting a ...
-1
votes
1
answer
30
views
Spring Boot 3.5.7 with newrelic agent
I have a Spring Boot application on version 3.5.6 and the New Relic agent is logging the application data without any problems. After updating Spring Boot to version 3.5.7, the application logs ...
0
votes
0
answers
7
views
Reactive Streams stop almost immediately when an ALB is in the mix
I have a spring boot flux endpoint (it takes and returns a flux). If there is no ALB in between, the client requests breeze through with no problems. Streams are closed gracefully on both ends no ...
0
votes
1
answer
36
views
SpringBoot OCI optimized image for all environments
I am using SpringBoot 3.5.7 to build docker image with ./mvnw spring-boot:build-image.
I also use a custom Spring Starter, that contains some common code, but also some common configuration settings ...
Best practices
0
votes
0
replies
20
views
How to add a request timestamp not to many forms with Spring Boot with possible override in testing scenarios
We want to ad a request timestamp to some forms in Spring Boot. We need the timestamp in production and testing for various reasons.
public interface TimestampForm {
ZonedDateTime getTimestamp();
...
Advice
2
votes
0
replies
63
views
What's the purpose of spring.http.codecs.max-in-memory-size?
I'm confused with the very existence of the property:
spring.http.codecs.max-in-memory-size=
Limit on the number of bytes that can be buffered whenever the input stream needs to be aggregated. This ...
0
votes
0
answers
47
views
Exclude specific endpoints from trace logging in Spring Boot
I'm using Spring Boot 3.5.7 and micrometer-tracing-bridge-otel.
My goal is to add the traceId in the logs.
I have the following configuration in my application.yml:
management:
tracing:
enabled: ...
-1
votes
0
answers
24
views
ERROR 415 Unsupported Media Type In Postman [duplicate]
I'm trying to upload a property object (JSON) along with multiple images using multipart/form-data, but Spring Boot keeps returning:
415 Unsupported Media Type
Content-Type 'application/octet-stream' ...
1
vote
0
answers
33
views
Spring Webflux passing Multipart to next request fails
I got this pseudocode:
serverRequest.multipartData()
.flatMap(multiPart -> {
final var valueMap = multiPart.toSingleValueMap();
final var part = (FilePart) valueMap.get("...
-7
votes
0
answers
47
views
How to handle inconsistency in 2fa validation [closed]
Hi I am experiencing data inconsistency in 2fa here is the error and a snippet of the code
{"timestamp":"2025-11-17T06:30:51.934+0000","level":"ERROR","...
2
votes
0
answers
78
views
OkHttpClient Client not sending server-name extension in SSL Client handshake
I have a Springboot server with two ssl self signed certificates configured for different hostnames. One certificate assigned to hostname localhost. Another assigned as fallback, so any hostname other ...
0
votes
0
answers
27
views
cant manage to make entity corresponding to entitygraph query
so i am using entity graph to make a dynamic query of a table, the query is being made correctly which is corresponding to my graph and subgraph attribute nodes but when i fetch it as the entity, the ...
0
votes
1
answer
61
views
Resolving non generic type in a dynamic generic Spring Boot controller
I have a generic rest controller (with @RestController and empty mapping) with a method that accepts a generic @RequestBody. I then register this controller multiple times using ...
Advice
0
votes
0
replies
37
views
Spring Boot CommonsRequestLoggingFilter to curl
In Spring Boot I use the standard practice of using a CommonRequestLoggingFilter bean to log the full requests in a debug profile.
2025-11-14T16:22:26.617+01:00 [362-exec-9] DEBUG ...
1
vote
0
answers
54
views
Hibernate Dirty Checking
I'm using Spring Data JPA with an entity that contains a Map<String, String> field.
The map is stored in the database as a TEXT column (JSON string). JPA automatically stores the map as a ...