类的使用
org.springframework.web.HttpMediaTypeNotSupportedException
使用HttpMediaTypeNotSupportedException的程序包 程序包 说明 org.springframework.web.servlet.mvc.method.annotation MVC infrastructure for annotation-based handler method processing, building on theorg.springframework.web.method.annotation
package.org.springframework.web.servlet.mvc.support Support package for MVC controllers.org.springframework.web.servlet.mvc.method.annotation中HttpMediaTypeNotSupportedException的使用
参数类型为HttpMediaTypeNotSupportedException的org.springframework.web.servlet.mvc.method.annotation中的方法 修饰符和类型 方法 说明 protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleHttpMediaTypeNotSupported(HttpMediaTypeNotSupportedException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for HttpMediaTypeNotSupportedException.抛出HttpMediaTypeNotSupportedException的org.springframework.web.servlet.mvc.method.annotation中的方法 修饰符和类型 方法 说明 protected <T> Object
AbstractMessageConverterMethodArgumentResolver. readWithMessageConverters(HttpInputMessage inputMessage, MethodParameter parameter, Type targetType)
Create the method argument value of the expected parameter type by reading from the given HttpInputMessage.protected <T> Object
AbstractMessageConverterMethodArgumentResolver. readWithMessageConverters(NativeWebRequest webRequest, MethodParameter parameter, Type paramType)
Create the method argument value of the expected parameter type by reading from the given request.protected <T> Object
RequestResponseBodyMethodProcessor. readWithMessageConverters(NativeWebRequest webRequest, MethodParameter parameter, Type paramType)
Object
HttpEntityMethodProcessor. resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory)
org.springframework.web.servlet.mvc.support中HttpMediaTypeNotSupportedException的使用
参数类型为HttpMediaTypeNotSupportedException的org.springframework.web.servlet.mvc.support中的方法 修饰符和类型 方法 说明 protected ModelAndView
DefaultHandlerExceptionResolver. handleHttpMediaTypeNotSupported(HttpMediaTypeNotSupportedException ex, HttpServletRequest request, HttpServletResponse response, Object handler)
Handle the case where no message converters were found for the PUT or POSTed content.