r/SpringBoot • • Mar 08 '26

Question ControllerAdvice and RestControllerAdvice

I have this social media app that's with java/springboot and react as a frontend. Now all the exception handling was done in the service layer but I recently learned about ControllerAdvice and was wondering if it's worth the refactoring. If someone has some tips feel free to dm as well :)

13 Upvotes

5 comments sorted by

View all comments

Show parent comment

2

u/bigkahuna1uk Mar 08 '26

Thanks for sharing your library. It looks very useful and valuable.