接口的使用
org.springframework.web.client.ResponseErrorHandler
使用ResponseErrorHandler的程序包 程序包 说明 org.springframework.web.client Core package of the client-side web support.org.springframework.web.client中ResponseErrorHandler的使用
实现ResponseErrorHandler的org.springframework.web.client中的类 修饰符和类型 类 说明 class
DefaultResponseErrorHandler
Spring's default implementation of theResponseErrorHandler
interface.class
ExtractingResponseErrorHandler
Implementation ofResponseErrorHandler
that usesHttpMessageConverters
to convert HTTP error responses toRestClientExceptions
.返回ResponseErrorHandler的org.springframework.web.client中的方法 修饰符和类型 方法 说明 ResponseErrorHandler
AsyncRestTemplate. getErrorHandler()
已过时。Return the error handler.ResponseErrorHandler
RestTemplate. getErrorHandler()
Return the error handler.参数类型为ResponseErrorHandler的org.springframework.web.client中的方法 修饰符和类型 方法 说明 void
AsyncRestTemplate. setErrorHandler(ResponseErrorHandler errorHandler)
已过时。Set the error handler.void
RestTemplate. setErrorHandler(ResponseErrorHandler errorHandler)
Set the error handler.