类 NoSuchRequestHandlingMethodException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- javax.servlet.ServletException
- org.springframework.web.servlet.mvc.multiaction.NoSuchRequestHandlingMethodException
- 所有已实现的接口:
Serializable
@Deprecated public class NoSuchRequestHandlingMethodException extends ServletException
已过时。as of 4.3, in favor of annotation-driven handler methodsException thrown when there is no handler method ("action" method) for a specific HTTP request.- 作者:
- Rod Johnson, Juergen Hoeller
- 另请参阅:
MethodNameResolver.getHandlerMethodName(javax.servlet.http.HttpServletRequest), 序列化表格
构造器概要
构造器 构造器 说明 NoSuchRequestHandlingMethodException(String methodName, Class<?> controllerClass)已过时。Create a new NoSuchRequestHandlingMethodException for the given request.NoSuchRequestHandlingMethodException(String urlPath, String method, Map<String,String[]> parameterMap)已过时。Create a new NoSuchRequestHandlingMethodException.NoSuchRequestHandlingMethodException(HttpServletRequest request)已过时。Create a new NoSuchRequestHandlingMethodException for the given request.
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 StringgetMethodName()已过时。Return the name of the offending method, if known.从类继承的方法 javax.servlet.ServletException
getRootCause
构造器详细资料
NoSuchRequestHandlingMethodException
public NoSuchRequestHandlingMethodException(HttpServletRequest request)
已过时。Create a new NoSuchRequestHandlingMethodException for the given request.- 参数:
request- the offending HTTP request
NoSuchRequestHandlingMethodException
public NoSuchRequestHandlingMethodException(String urlPath, String method, Map<String,String[]> parameterMap)
已过时。Create a new NoSuchRequestHandlingMethodException.- 参数:
urlPath- the request URI that has been used for handler lookupmethod- the HTTP request method of the requestparameterMap- the request's parameters as map
NoSuchRequestHandlingMethodException
public NoSuchRequestHandlingMethodException(String methodName, Class<?> controllerClass)
已过时。Create a new NoSuchRequestHandlingMethodException for the given request.- 参数:
methodName- the name of the handler method that wasn't foundcontrollerClass- the class the handler method was expected to be in
方法详细资料
getMethodName
public String getMethodName()
已过时。Return the name of the offending method, if known.