Fegin源码解析流程
2022-12-02 11:11:15 8 举报
Fegin源码解析流程
作者其他创作
大纲/内容
feignClientFactoryBean注入
ReflectiveFeign#newInstance
fegin全局配置注入到容器
FeignClientsRegistrar#registerFeignClients
Feign#target
FeignClientsRegistrar
SynchronousMethodHandler#executeAndDecode
FeignClientFactoryBean#loadBalance
HystrixTargeter#target
AbstractLoadBalancerAwareClient#executeWithLoadBalancer
FeignClientsRegistrar#registerBeanDefinitions
LoadBalancerCommand#selectServer
FeignClientsRegistrar#registerDefaultConfiguration
LoadBalancerCommand#getServerFromLoadBalancer
RIbbon负载
LoadBalancerCommand#submit
FeignClientFactoryBean#getObject
走负载
FeignInvocationHandler#invoke
FeignClientsRegistrar#registerFeignClient
@EnableFeignClients 正向切入
FeignClientFactoryBean#getTarget
SynchronousMethodHandler#invoke
ZoneAwareLoadBalancer#chooseServerr
可完成注入一些bean
LoadBalancerFeignClient#execute
收藏
0 条评论
下一页