![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
技术
JQ.Wang
这个作者很懒,什么都没留下…
展开
-
Feign 工作流程图解
feign 工作流程图feign 创建动态代理类feign 请求流程原创 2020-04-21 01:32:51 · 1186 阅读 · 0 评论 -
InstantiationAwareBeanPostProcessor;bean实例化后增强;字段注入
文章目录Interface InstantiationAwareBeanPostProcessorpostProcessAfterInstantiation(Object bean, String beanName)postProcessBeforeInstantiation(Class<?> beanClass, String beanName)postProcessProperti...原创 2020-04-09 19:10:00 · 243 阅读 · 0 评论 -
EnvironmentAware;获取运行环境中变量;使用:加载配置文件
文章目录Interface EnvironmentAwaresetEnvironment(Environment environment)使用场景Interface EnvironmentAwareorg.springframework.context.EnvironmentAwaresetEnvironment(Environment environment)任何实现这个接口...原创 2020-04-07 23:48:51 · 983 阅读 · 0 评论 -
MethodInterceptor;方法调用拦截器;使用:打印操作日志,阿里sentinal接入用于服务降级
文章目录Interface MethodInterceptorinvoke(MethodInvocation invocation)使用场景Interface MethodInterceptororg.aopalliance.intercept.MethodInterceptorinvoke(MethodInvocation invocation)这是一个函数接口,因此可以用作...原创 2020-04-07 23:14:30 · 532 阅读 · 0 评论 -
ApplicationListener;监听事件;使用:服务启动后上报数据
Interface ApplicationListenerorg.springframework.context.ApplicationListeneronApplicationEvent(E event)E:要侦听的特定ApplicationEvent子类这是一个函数接口,因此可以用作lambda表达式或方法引用 赋值目标由应用程序事件侦听器实现的接口。基于标准ja...原创 2020-04-07 19:42:18 · 442 阅读 · 0 评论 -
BeanPostProcessor;自定义修改bean实例;使用:收集接口上的自定义注解
Interface BeanPostProcessororg.springframework.beans.factory.config.BeanPostProcessorpostProcessAfterInitialization(Object bean, String beanName)postProcessBeforeInitialization(Object bean, Stri...原创 2020-04-07 19:06:45 · 527 阅读 · 0 评论 -
InitializingBean;初始化完成总体配置工作;每次服务部署时,检查必要的文件目录是否存在
Interface InitializingBeanorg.springframework.beans.factory.InitializingBeanvoid afterPropertiesSet() throws Exception;BeanFactory设置了bean的所有属性后,该bean就需要立即做出反应:例如,执行自定义初始化,或者只是检查所有必需的属性是否都设置好了...原创 2020-04-07 13:53:47 · 205 阅读 · 0 评论 -
Feign-学习分享-1 入门
文章目录feign 简介使用场景入门示例DEMO注解介绍工作流程各个模块功能分析HeadersBody templatesEncodersDecodersError HandlingRequest InterceptorsRetry参考文章:feign 简介Feign是声明式、模板化的HTTP客户端, Feign可以帮助我们更快捷、优雅地调用HTTP APIFeign 在英文中是“假...原创 2020-04-06 20:44:56 · 186 阅读 · 0 评论 -
Feign编写java http客户端 -参考源码README
文章目录Feign 使编写java http客户端变得更容易Why Feign and not X?How does Feign work?Java Version CompatibilityFeature overview项目路线图 RoadmapFeign 11 and beyond短期正在进行的. ⏰中期安排. ⏲长期计划 ☁️入门Interface Annotations模板和表达式Req...翻译 2020-04-05 21:32:33 · 700 阅读 · 0 评论