@ControllerAdvice
public class FileUploadExceptionAdvice
extends org.springframework.web.servlet.handler.SimpleMappingExceptionResolver
Modifier and Type | Field and Description |
---|---|
protected String |
DEFAULT_ERROR_VIEW |
DEFAULT_EXCEPTION_ATTRIBUTE
Constructor and Description |
---|
FileUploadExceptionAdvice() |
Modifier and Type | Method and Description |
---|---|
org.springframework.web.servlet.ModelAndView |
handleMaxSizeException(org.springframework.web.multipart.MaxUploadSizeExceededException exc,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
addStatusCode, applyStatusCodeIfPossible, determineStatusCode, determineViewName, doResolveException, findMatchingViewName, getDepth, getModelAndView, getModelAndView, getStatusCodesAsMap, setDefaultErrorView, setDefaultStatusCode, setExceptionAttribute, setExceptionMappings, setExcludedExceptions, setStatusCodes
buildLogMessage, getOrder, hasHandlerMappings, logException, prepareResponse, preventCaching, resolveException, setMappedHandlerClasses, setMappedHandlers, setOrder, setPreventResponseCaching, setWarnLogCategory, shouldApplyTo
protected String DEFAULT_ERROR_VIEW
@ExceptionHandler(value=org.springframework.web.multipart.MaxUploadSizeExceededException.class) public org.springframework.web.servlet.ModelAndView handleMaxSizeException(org.springframework.web.multipart.MaxUploadSizeExceededException exc, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Copyright © 2022. All rights reserved.