Browse Source

Polishing contribution

See gh-27948
pull/28037/head
rstoyanchev 3 years ago
parent
commit
7ecfce2386
  1. 13
      spring-web/src/main/java/org/springframework/web/multipart/support/MissingServletRequestPartException.java
  2. 1
      spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ResponseEntityExceptionHandler.java
  3. 1
      spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/support/DefaultHandlerExceptionResolver.java

13
spring-web/src/main/java/org/springframework/web/multipart/support/MissingServletRequestPartException.java

@ -20,16 +20,13 @@ import org.springframework.web.bind.ServletRequestBindingException; @@ -20,16 +20,13 @@ import org.springframework.web.bind.ServletRequestBindingException;
import org.springframework.web.multipart.MultipartResolver;
/**
* Raised when the part of a "multipart/form-data" request identified by its
* name cannot be found.
*
* <p>This may be because the request is not a multipart/form-data request,
* because the part is not present in the request, or because the web
* application is not configured correctly for processing multipart requests,
* e.g. no {@link MultipartResolver}.
* Signals the part of a "multipart/form-data" request, identified by name
* could not be found. This may be because the request is not a multipart
* request, or a part with that name is not present, or because the application
* is not configured correctly for processing multipart requests, e.g. there
* is no {@link MultipartResolver}.
*
* @author Rossen Stoyanchev
* @author Wonchul Heo
* @since 3.1
*/
@SuppressWarnings("serial")

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

@ -73,7 +73,6 @@ import org.springframework.web.util.WebUtils; @@ -73,7 +73,6 @@ import org.springframework.web.util.WebUtils;
* detected, {@link ExceptionHandlerExceptionResolver} must be configured.
*
* @author Rossen Stoyanchev
* @author Wonchul Heo
* @since 3.2
* @see #handleException(Exception, WebRequest)
* @see org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver

1
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/support/DefaultHandlerExceptionResolver.java

@ -135,7 +135,6 @@ import org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver; @@ -135,7 +135,6 @@ import org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver;
* @author Arjen Poutsma
* @author Rossen Stoyanchev
* @author Juergen Hoeller
* @author Wonchul Heo
* @since 3.0
* @see org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
*/

Loading…
Cancel
Save