Class AdminRepositoryRestExceptionHandler
- java.lang.Object
-
- org.springframework.data.rest.webmvc.RepositoryRestExceptionHandler
-
- nl.b3p.tailormap.api.controller.admin.AdminRepositoryRestExceptionHandler
-
@ControllerAdvice(basePackageClasses=AdminRepositoryRestExceptionHandler.class) public class AdminRepositoryRestExceptionHandler extends org.springframework.data.rest.webmvc.RepositoryRestExceptionHandler
Also apply the RepositoryRestExceptionHandler from Spring Data REST to our custom controllers so a RepositoryConstraintViolationException gets converted to JSON.
-
-
Constructor Summary
Constructors Constructor Description AdminRepositoryRestExceptionHandler(org.springframework.context.MessageSource messageSource)
-