Skip to content

Commit

Permalink
feat : fix issue with exception handler
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Jan 10, 2024
1 parent 30149b9 commit 3d955b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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 @@ -13,6 +15,7 @@
import org.springframework.web.bind.annotation.ResponseStatus;

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

@ExceptionHandler(MethodArgumentNotValidException.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ApplicationIntegrationTest {

@Container
private static final PostgreSQLContainer<?> POSTGRE_SQL_CONTAINER =
new PostgreSQLContainer<>("postgres:16.0-alpine");
new PostgreSQLContainer<>("postgres:16.1-alpine");

@DynamicPropertySource
static void registerDynamicProperties(DynamicPropertyRegistry registry) {
Expand Down

0 comments on commit 3d955b4

Please sign in to comment.