Skip to content

Commit 808d1b6

Browse files
committed
Merge branch '6.2.x'
2 parents 27c4f0e + 53b3b93 commit 808d1b6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ResponseEntityExceptionHandler.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -33,7 +33,6 @@
3333
import org.springframework.http.ResponseEntity;
3434
import org.springframework.http.converter.HttpMessageNotReadableException;
3535
import org.springframework.http.converter.HttpMessageNotWritableException;
36-
import org.springframework.validation.BindException;
3736
import org.springframework.validation.method.MethodValidationException;
3837
import org.springframework.web.ErrorResponse;
3938
import org.springframework.web.ErrorResponseException;
@@ -134,7 +133,6 @@ public void setMessageSource(MessageSource messageSource) {
134133
HttpMessageNotReadableException.class,
135134
HttpMessageNotWritableException.class,
136135
MethodValidationException.class,
137-
BindException.class,
138136
AsyncRequestNotUsableException.class
139137
})
140138
public final @Nullable ResponseEntity<Object> handleException(Exception ex, WebRequest request) throws Exception {

0 commit comments

Comments
 (0)