150,695 questions
0
votes
0
answers
22
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 ...
0
votes
0
answers
23
views
How to manage DTO proliferation for different API operations
I'm having trouble managing DTOs.
I'm working as follows: I have a reusable DTO called PhoneResponseDTO that is used in both findAll and findByID. Then I created a DTO for each operation like Created, ...
-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 ...
Advice
0
votes
1
replies
152
views
How to authenticate WebSocket connection when access_token is stored in HttpOnly cookies? (Spring Cloud Gateway + STOMP)
I’m building a WebSocket-based microservice architecture using Spring Cloud Gateway and STOMP WebSockets.
Users log in through the frontend, and the backend sets:
access_token (HttpOnly, Secure, ...
0
votes
0
answers
41
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 ...
Advice
0
votes
2
replies
32
views
How to retry sending a message to AWS SQS in Spring Boot, and then send it to a DLQ if all retries fail?
I am working on a Spring Boot 3.5.0 application that publishes messages to an AWS SQS FIFO queue.
My requirement is:
When sending a message to SQS:
If it fails (network error, AWS error etc.), the ...
-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 ...
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 ...
-4
votes
1
answer
50
views
Tiktok fetch an access token using an authorizaiton code problems in java spring boot
I am trying to exchange my authorizatoin code for an access token. I keep getting a "request parameters are malformed" error. I can curl the endpoint just fine but for some reason I can't ...
-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
1
answer
35
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 ...
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(...
1
vote
2
answers
69
views
ERROR 415 Unsupported Media Type In Postman
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' ...
-3
votes
0
answers
61
views
why i get error when build jdl file in Jhipster
When I build the jdl file on the database side, I only get one entity, the other entities are not updated to the database. This is my jdl file:
application {
config {
baseName ...
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: ...
-7
votes
0
answers
46
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","...
-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' ...
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 ...
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("...
2
votes
1
answer
72
views
Login infinitely retrying with bad credentials
I am using Java Spring boot and Thymeleaf. When trying to login with bad credentials, the page freezes for a few minutes, and it says the page isn't working.
When I activate debug in application....
-6
votes
1
answer
61
views
How to fix error Missing required jhipster-needle redis-add-entry not found by Jhipster v8.11.0 [closed]
When I run the command jhipster import-jdl jhipster-jdl.jdl it shows this error:
ERROR! An error occured while running jhipster:spring-cache#customizeFiles
ERROR! ERROR! Error editing file E:\...
0
votes
1
answer
94
views
Spring Boot 3.3 migration. Cannot resolve reference to bean jpaSharedEM_entityManagerFactory
I'm migrating from Spring Boot 2.7 to Spring Boot 3.3.13. This means that I'm migrating even from Hibernate 5 to Hibernate 6.
I'm having an annoying problem when I start my Spring Application about ...
-1
votes
0
answers
65
views
Correct combination/versions of Spring Boot, Camel and Kafka in pom.xml for java 21 [closed]
We have an old maven project built with java 8. It's working fine. Now we're upgrading to java 21, and updated pom.xml as follows.
Spring Boot 3.5.6
Camel 4.15.0
Kafka 3.8.0
The jar was built with ...
1
vote
1
answer
66
views
Why is Spring attempting to use a read-only transaction when I explicitly requested a new write transaction?
I have a service method that performs the following operations in sequence:
Calls a read method annotated with a custom read-only transaction annotation (equivalent to @Transactional(readOnly = true))...