类的使用
org.springframework.http.converter.HttpMessageNotReadableException
使用HttpMessageNotReadableException的程序包 程序包 说明 org.springframework.http.converter Provides an HttpMessageConverter abstraction to convert between Java objects and HTTP input/output messages.org.springframework.http.converter.feed Provides HttpMessageConverter implementations for handling Atom and RSS feeds.org.springframework.http.converter.json Provides HttpMessageConverter implementations for handling JSON.org.springframework.http.converter.protobuf Provides an HttpMessageConverter implementation for handling Google Protocol Buffers.org.springframework.http.converter.xml Provides HttpMessageConverter implementations for handling XML.org.springframework.web.servlet.mvc.method.annotation MVC infrastructure for annotation-based handler method processing, building on theorg.springframework.web.method.annotationpackage.org.springframework.web.servlet.mvc.support Support package for MVC controllers.org.springframework.http.converter中HttpMessageNotReadableException的使用
抛出HttpMessageNotReadableException的org.springframework.http.converter中的方法 修饰符和类型 方法 说明 TAbstractHttpMessageConverter. read(Class<? extends T> clazz, HttpInputMessage inputMessage)This implementation simple delegates toAbstractHttpMessageConverter.readInternal(Class, HttpInputMessage).BufferedImageBufferedImageHttpMessageConverter. read(Class<? extends BufferedImage> clazz, HttpInputMessage inputMessage)MultiValueMap<String,String>FormHttpMessageConverter. read(Class<? extends MultiValueMap<String,?>> clazz, HttpInputMessage inputMessage)TGenericHttpMessageConverter. read(Type type, Class<?> contextClass, HttpInputMessage inputMessage)Read an object of the given type form the given input message, and returns it.THttpMessageConverter. read(Class<? extends T> clazz, HttpInputMessage inputMessage)Read an object of the given type from the given input message, and returns it.ObjectResourceRegionHttpMessageConverter. read(Type type, Class<?> contextClass, HttpInputMessage inputMessage)protected abstract TAbstractHttpMessageConverter. readInternal(Class<? extends T> clazz, HttpInputMessage inputMessage)Abstract template method that reads the actual object.protected ObjectObjectToStringHttpMessageConverter. readInternal(Class<?> clazz, HttpInputMessage inputMessage)protected ResourceResourceHttpMessageConverter. readInternal(Class<? extends Resource> clazz, HttpInputMessage inputMessage)protected ResourceRegionResourceRegionHttpMessageConverter. readInternal(Class<?> clazz, HttpInputMessage inputMessage)org.springframework.http.converter.feed中HttpMessageNotReadableException的使用
抛出HttpMessageNotReadableException的org.springframework.http.converter.feed中的方法 修饰符和类型 方法 说明 protected TAbstractWireFeedHttpMessageConverter. readInternal(Class<? extends T> clazz, HttpInputMessage inputMessage)org.springframework.http.converter.json中HttpMessageNotReadableException的使用
抛出HttpMessageNotReadableException的org.springframework.http.converter.json中的方法 修饰符和类型 方法 说明 ObjectAbstractJackson2HttpMessageConverter. read(Type type, Class<?> contextClass, HttpInputMessage inputMessage)ObjectAbstractJsonHttpMessageConverter. read(Type type, Class<?> contextClass, HttpInputMessage inputMessage)protected ObjectAbstractJackson2HttpMessageConverter. readInternal(Class<?> clazz, HttpInputMessage inputMessage)protected ObjectAbstractJsonHttpMessageConverter. readInternal(Class<?> clazz, HttpInputMessage inputMessage)org.springframework.http.converter.protobuf中HttpMessageNotReadableException的使用
抛出HttpMessageNotReadableException的org.springframework.http.converter.protobuf中的方法 修饰符和类型 方法 说明 protected com.google.protobuf.MessageProtobufHttpMessageConverter. readInternal(Class<? extends com.google.protobuf.Message> clazz, HttpInputMessage inputMessage)org.springframework.http.converter.xml中HttpMessageNotReadableException的使用
抛出HttpMessageNotReadableException的org.springframework.http.converter.xml中的方法 修饰符和类型 方法 说明 TJaxb2CollectionHttpMessageConverter. read(Type type, Class<?> contextClass, HttpInputMessage inputMessage)TAbstractXmlHttpMessageConverter. readInternal(Class<? extends T> clazz, HttpInputMessage inputMessage)protected TSourceHttpMessageConverter. readInternal(Class<? extends T> clazz, HttpInputMessage inputMessage)org.springframework.web.servlet.mvc.method.annotation中HttpMessageNotReadableException的使用
参数类型为HttpMessageNotReadableException的org.springframework.web.servlet.mvc.method.annotation中的方法 修饰符和类型 方法 说明 protected ResponseEntity<Object>ResponseEntityExceptionHandler. handleHttpMessageNotReadable(HttpMessageNotReadableException ex, HttpHeaders headers, HttpStatus status, WebRequest request)Customize the response for HttpMessageNotReadableException.抛出HttpMessageNotReadableException的org.springframework.web.servlet.mvc.method.annotation中的方法 修饰符和类型 方法 说明 protected <T> ObjectAbstractMessageConverterMethodArgumentResolver. 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> ObjectAbstractMessageConverterMethodArgumentResolver. 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> ObjectRequestResponseBodyMethodProcessor. readWithMessageConverters(NativeWebRequest webRequest, MethodParameter parameter, Type paramType)org.springframework.web.servlet.mvc.support中HttpMessageNotReadableException的使用
参数类型为HttpMessageNotReadableException的org.springframework.web.servlet.mvc.support中的方法 修饰符和类型 方法 说明 protected ModelAndViewDefaultHandlerExceptionResolver. handleHttpMessageNotReadable(HttpMessageNotReadableException ex, HttpServletRequest request, HttpServletResponse response, Object handler)Handle the case where a message converter cannot read from an HTTP request.