title: Spring-boot: RestControllerAdvise not reached
body: <p>I've built a <code>RestControlerAdvise</code>:</p>
  
  <pre><code>@RestControllerAdvice
  @Order(Ordered.HIGHEST_PRECEDENCE)
  public class ExceptionControllerAdvice {
  
      @ExceptionHandler({DocumentAlreadyExistsException.class})
      @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
      public cat.gencat.ctti.canigo.arch.web.rs.model.Error handleException(DocumentAlreadyExistsException e) {
  
          cat.gencat.ctti.canigo.arch.web.rs.model.Error error = new cat.gencat.ctti.canigo.arch.web.rs.model.Error();
          error.setCode(HttpStatus.BAD_REQUEST.value());
          error.setMessage(e.getMessage());
          return error;
  
      }
  
  }
  </code></pre>
  
  <p>Nevertheless, it's never reached even though I raise an <code>DocumentAlreadyExistException</code>.</p>
  
  <p>It's detected on boot:</p>
  
  <blockquote>
    <p>2018-08-20 17:08:25.791  INFO 4941 --- [           main] .m.m.a.ExceptionHandlerExceptionResolver : Detected @ExceptionHandler methods in exceptionControllerAdvice</p>
  </blockquote>
  
  <p>Any ideas?</p>