feign调用流程

1.ReflectiveFeign.invoke

Object invoke(Object proxy, Method method, Object[] args) throws Throwable

  1. SynchronousMethodHandler.invoke

public Object invoke(Object[] argv) throws Throwable {

  1. SynchronousMethodHandler.executeAndDecode

Object executeAndDecode(RequestTemplate template, Options options) throws Throwable

  1. AsyncResponseHandler.decode

Object decode(Response response, Type type) throws IOException {

  1. OptionalDecoder.decode

public Object decode(Response response, Type type) throws IOException

  1. ResponseEntityDecoder.decode

public Object decode(final Response response, Type type)

  1. SpringDecoder.decode

public Object decode(final Response response, Type type)

  1. HttpMessageConverterExtractor.extractData

public T extractData(ClientHttpResponse response) throws IOException {

  1. AbstractJackson2HttpMessageConverter.read

public Object read(Type type, @Nullable Class contextClass, HttpInputMessage inputMessage)

  1. AbstractJackson2HttpMessageConverter.readJavaType

  2. ObjectMapper.readValue

  3. ObjectMapper._readMapAndClose

  4. BeanDeserializer.deserialize

  5. BeanDeserializer.deserializeFromObject

你可能感兴趣的:(java)