Class 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 Detail

      • AdminRepositoryRestExceptionHandler

        public AdminRepositoryRestExceptionHandler​(org.springframework.context.MessageSource messageSource)