150,694 questions
0
votes
0
answers
22
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, ...
0
votes
0
answers
28
views
"DefaultJpaDialect does not support custom isolation levels" when upgrading to spring batch 5
I am upgrading an app to newest Spring Boot 3, and because of that Spring Batch is upgraded to 5.2.3 (from 4.3.10).
The application did not persist batch states previously, it was using the "map ...
0
votes
0
answers
21
views
Spring Boot Dashboard in VS Code isn't displaying one of the project's modules
I'm setting up the environment for a project of the company I work for. It's a multi module backend runing Spring Boot. I didn't have problems with most of the setup, but one of the project's modules, ...
0
votes
0
answers
24
views
Spring Security 3.1.4 requestmatchers with Pathvariable
I have an unclear situation. I'm using a controller with any endpoints. I have a two methods with Get endpoints /short and /{idOrCode}. Pathvariable is a String type. Endpoint with this pathvariable ...
1
vote
1
answer
57
views
DataJpaTest and AutoConfigureTestDatabase in Spring Boot 4.0.0
I have the following errors using Java 17 with Spring Boot 4.0.0:
Cannot resolve symbol 'DataJpaTest'
Cannot resolve symbol 'AutoConfigureTestDatabase'
The problem happens in a JUnit test class ...
Advice
0
votes
0
replies
33
views
Storing Domain Events directly in Outbox table vs mapping to Integration Events in Java/Spring (DDD based Microservices)
I have a Spring Boot / Java application following Domain-Driven Design and Event-Driven Architecture.
In my domain service, I create a ReservationCreatedEvent (a domain event) and publish it:
...
-3
votes
0
answers
44
views
How to run a Spring Boot application in IntelliJ with debugging enabled?
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.
However, this ...
0
votes
0
answers
22
views
Using Federated Credentials Flow with Webclient in Springboot
What we have and want:
Currently we make use of the standard clientCredentials flow like it's explained here: https://www.baeldung.com/spring-webclient-oauth2#1-client-and-provider-configurations
We ...
Advice
0
votes
2
replies
31
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 ...
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, ...
-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 ...
0
votes
0
answers
26
views
Maven ignores central repository overrides when <scope>import</scope>ing pom into dependency management
I have the following Maven settings.xml to make Maven go to my local Maven Central mirror (this is a standard way recommended by JFrog Artifactory):
<settings xmlns="http://maven.apache.org/...
2
votes
1
answer
35
views
Can a Spring Framework 7.x WAR run on a Jakarta EE 10 server?
I’m working on a web application which is packaged as a WAR that I’m planning to upgrade to Spring Framework 7.x. I noticed that Spring 7 requires Jakarta EE 11, but the environment I need to deploy ...
1
vote
0
answers
26
views
Micrometer Tracing: TraceId changes when request passes through filter in Spring Boot + Tomcat
I'm using Spring Boot 3.5.7 with Micrometer Tracing (OpenTelemetry bridge) to add a traceId to my logs. I have a REST endpoint and a custom filter like this:
@RestController
@RequestMapping("/api/...
-3
votes
0
answers
60
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 ...
-3
votes
0
answers
54
views
OpenTelemetry + ReactiveFeign + Spring WebFlux not propagating traceparent between microservices (header injected but missing in downstream service)
I’m running two Java microservices (A → B) in a Kubernetes cluster (GKE), using:
Spring Boot 3.5 (WebFlux)
ReactiveFeign (Playtika Feign Reactor 4.2.1)
OpenTelemetry Java Agent (2.20.1)
OTLP ...
0
votes
0
answers
28
views
Spring Webflux Dynamic path control in the filter layer
in my Spring WebFlux project, I cache endpoints with specific annotations at application startup time using the following DTO.
data class ExplorerResult<T>(
override val supportedPaths: Set&...
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' ...
0
votes
0
answers
62
views
Spring Boot 2.7.x JPA @ManyToOne join returns empty list on GET, but works on POST
In a Spring Boot 2.7.x application with Hibernate/JPA, there are two tables:
tickets
complaint_id (PK, VARCHAR(255))
attachment
complaint_id (FK, VARCHAR(255))
other fields: id, file_name, ...
Advice
1
vote
1
replies
80
views
How spring-context is selected for a given spring-boot release?
I'm trying to understand Spring boot release model. I noticed that spring boot version 2.3.0.RELEASE was built on spring-context 5.2.6.RELEASE, whereas spring boot version 2.2.13.RELEASE (an earlier ...
1
vote
1
answer
81
views
Java Springboot API endpoint overload
I'm making a banking application where a user can create a bank account, this account can be a savings account with a monthly income or a current account with a monthly upkeep, the classes of both ...
-6
votes
1
answer
60
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:\...
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....
2
votes
1
answer
60
views
Thymeleaf removes name value for select when rendering fragment
I want to build a web page that will have HTML form with a number of select components describing location: country, state, city and street. Choosing value in given select component will update ...
Advice
0
votes
0
replies
49
views
Oauth2 client in spring
Im posting here because cant get a working example of oauth2 client implementation in spring boot 3.5.7
This is my first time ever implementing this type of authentication and cant manage to make it ...