Skip to content

Commit

Permalink
feat: fix issue with using exceptionHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Nov 14, 2023
1 parent a5dac06 commit bf352ba
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import java.util.Comparator;
import java.util.List;
import java.util.Objects;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.http.HttpStatus;
import org.springframework.http.HttpStatusCode;
import org.springframework.http.ProblemDetail;
Expand All @@ -12,6 +14,7 @@
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseStatus;

@Order(Ordered.HIGHEST_PRECEDENCE)
@ControllerAdvice
public class GlobalExceptionHandler {

Expand Down

0 comments on commit bf352ba

Please sign in to comment.