150,331 questions
Score of 0
0 answers
67 views
Packaging Spring Boot application as layered war
I have a legacy application containing JSPs and Taglibs packaged as a WAR file.
I applied the recipe described in documentation https://docs.spring.io/spring-boot/reference/packaging/container-images/...
Score of 0
1 answer
104 views
"OSS support for Spring Boot 3.5.x ended on 2026-06-30" message doesn't go away after upgrading to 4.1.0
I migrated from Spring Boot 3.5.x to 4.1.0 with Java 21 and Gradle 9.3.1 in VS Code. Everything seems to work fine, but VS Code still gives me the annoying message:
OSS support for Spring Boot 3.5.x ...
Score of 0
0 answers
76 views
Unable to reproduce SocketReadTimeOut Error for okhttp3
We are trying to test ReadTimeOut exception by using useHttps() method of MockWebserver3, but unable to get this error. Please suggest if we can achieve this with useHttps() method, while upgrading ...
Score of 0
1 answer
72 views
Changing entity type from List<T> to Set<T> in manytomany causes spring app to throw concurrentModificationException
I am attempting to correct a mistake in how a ManyToMany relationship is set up and change the Lists over to Sets as I've read. But when I change each side of the relationship to a set, it breaks the ...
Score of 1
2 answers
153 views
Dealing with lookup tables and enums between database and spring app
I am attempting to add an enum of Roles for users. I have a roles table that has a FK constraint to a roles_name table for the role name.
How do I deal with the roles as an enum and as an entity? I ...
Score of 0
0 answers
32 views
Importing proto files from external module for Spring boot gRPC
Im trying to make project that will share .proto contracts across multiple services.
Currently I have made a example contract project:
<?xml version="1.0" encoding="UTF-8"?>
&...
Score of 0
1 answer
156 views
In outer transaction method, 1st inner DB write via Oracle SP not rolled back after exception in 2nd inner one
I can't figure out what I'm missing and Google AI also hasn't helped (I pass both of the requirements of [1] No self-invocation and [2] No swallowing of exceptions in the outer transaction method).
I ...
Score of 0
0 answers
78 views
Maven clean fails with AccessDeniedException while compile succeeds on Windows 11
I'm facing an unusual issue with Maven where compile works successfully, but clean always fails with an AccessDeniedException.
Environment
Windows 11
Oracle JDK 26.0.1
Apache Maven 3.9.16 (Maven ...
Score of 1
2 answers
135 views
How to set a default request body value
I upgraded my application from Spring Boot 3 to Spring Boot 4, so I also updated Jackson. However, I encountered a problem.
If I have an endpoint that takes an object like @RequestBody, and I define ...
Score of 3
1 answer
150 views
Spring Boot 3 fails to find bean despite @Service annotation and correct package structure
I have a Spring Boot 3 application where a controller depends on a service annotated with @Service, but the application fails to start because Spring cannot find the OrderService bean.
Error
Field ...
Score of 2
1 answer
197 views
Why does my application return different data than a direct SQL query?
I'm facing a strange issue, where the same PostgreSQL function returns different results, when executed from my Java application versus pgAdmin.
Environment
Spring Boot 3.0.6
PostgreSQL 15.3
JPA ...
Best practices
1
vote
2
replies
100
views
Spring Boot: Required headers at controller level and error 400 Bad Request instead 404 Not Found
I have a @RestController that has a required header. If I specify it in the @RequestMapping annotation family, etc.:
@RestController
@RequestMapping("/mycontroller", headers = ["X-...
Best practices
0
votes
3
replies
115
views
Where should values that will rarely change be stored in a full stack application
A simple example would be something like Entertainment Software Rating Board (ESRB) ratings, they change on occasion but not often. If I wanted to keep a list of these ratings for a full stack app, ...
Best practices
0
votes
0
replies
54
views
Enriching OTeL spans with domain exception information when working with Webflux exception handlers
We have a Spring Webflux-based applications (based on Spring Boot 3.5) that contains a @ControllerAdvice class for centralized exception handling.
In our domain services, we have domain-specific ...
Advice
0
votes
0
replies
75
views
How i can start with Add Firebase Admin SDK, dependencies, folder structure, service account setup
- Spring Boot
- Android (Jetpack Compose)
- Kotlin
I want my Spring Boot backend to send FCM notifications when an order status changes.
Before writing code, I'd like to understand the recommended ...