类 MissingServletRequestPartException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- javax.servlet.ServletException
- org.springframework.web.multipart.support.MissingServletRequestPartException
- 所有已实现的接口:
Serializable
public class MissingServletRequestPartException extends ServletException
Raised when the part of a "multipart/form-data" request identified by its name cannot be found.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
MultipartResolver
.- 从以下版本开始:
- 3.1
- 作者:
- Rossen Stoyanchev
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 MissingServletRequestPartException(String requestPartName)
Constructor for MissingServletRequestPartException.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String
getRequestPartName()
Return the name of the offending part of the multipart request.从类继承的方法 javax.servlet.ServletException
getRootCause
构造器详细资料
MissingServletRequestPartException
public MissingServletRequestPartException(String requestPartName)
Constructor for MissingServletRequestPartException.- 参数:
requestPartName
- the name of the missing part of the multipart request
方法详细资料
getRequestPartName
public String getRequestPartName()
Return the name of the offending part of the multipart request.