In this tutorial, we’re gonna look at an Spring Boot example that uses @ControllerAdvice
and @ExceptionHandler
for exception handling in Restful API.
Related Posts:
– Spring Boot, Spring Data JPA – Rest CRUD API example
– Spring Boot Pagination & Filter example
– Spring Boot Sort/Order by multiple Columns
– @RestControllerAdvice example in Spring Boot
– Documentation: Spring Boot Swagger 3 example
– Caching: Spring Boot Redis Cache example
– Validation: Validate Request Body in Spring Boot
More Practice:
– Spring Boot Multipart File upload example
– Spring Boot Token based Authentication with Spring Security & JWT
Unit Test:
– Spring Boot Unit Test for JPA Repository
– Spring Boot Unit Test for Rest Controller