Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
3k views

Spring boot: better way to handle response and exceptions

I am working on a quite a big Spring Boot web service and I wanted a standardized and simplified way to handle responses and exceptions by following fluent API design. So this is what I did and it ...
benjamin c's user avatar
1 vote
1 answer
186 views

In Spring framework, should the controller let the client know that something went wrong by returning a response entity with the proper error code?

Category Service: ...
Alexandros Kourtis's user avatar
2 votes
1 answer
2k views

Spring MVC @ControllerAdvice exception handling

This is about handling sql - foreign key constraint failure exceptions (SQL Error: 1452, SQLState: 23000) globally using ...
benjamin c's user avatar
1 vote
1 answer
201 views

Spring MVC controller

My code has a nasty smell that looks like this: ...
dwjohnston's user avatar
  • 1,348
3 votes
2 answers
252 views

Throw exception in Spring when loading a file

I have this following piece of code: ...
Manuelarte's user avatar