diff --git a/boot-rest-docs-sample/pom.xml b/boot-rest-docs-sample/pom.xml
index c3cc66885..f4a4c6b09 100644
--- a/boot-rest-docs-sample/pom.xml
+++ b/boot-rest-docs-sample/pom.xml
@@ -7,7 +7,7 @@
org.springframework.boot
spring-boot-starter-parent
- 3.1.6
+ 3.2.0
com.example.restdocs
diff --git a/boot-rest-docs-sample/src/main/java/com/example/restdocs/config/GlobalExceptionHandler.java b/boot-rest-docs-sample/src/main/java/com/example/restdocs/config/GlobalExceptionHandler.java
index ede47e9cd..71a24a314 100644
--- a/boot-rest-docs-sample/src/main/java/com/example/restdocs/config/GlobalExceptionHandler.java
+++ b/boot-rest-docs-sample/src/main/java/com/example/restdocs/config/GlobalExceptionHandler.java
@@ -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;
@@ -13,6 +15,7 @@
import org.springframework.web.bind.annotation.ResponseStatus;
@ControllerAdvice
+@Order(Ordered.HIGHEST_PRECEDENCE)
public class GlobalExceptionHandler {
@ExceptionHandler(MethodArgumentNotValidException.class)