上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 24 下一页
  2019年3月20日
摘要: PatternLayout 配置说明: http://logging.apache.org/log4j/2.x/manual/layouts.html#PatternLayout pattern 转义符处理类: org.apache.logging.log4j.core.pattern.Patter 阅读全文
posted @ 2019-03-20 09:54 快鸟 阅读(309) 评论(0) 推荐(0)
  2019年3月13日
摘要: fiddler 工作原理 Fiddler 启动后将自己变成一个代理服务器,这个代理服务器默认监听 127.0.0.1:8888。 Filddler 启动后浏览器的代理会被自动更改为 127.0.0.1:8888,当它退出的时候会自动注销代理,这样就不会影响别的程序。 fiddler 只抓取指定域名的 阅读全文
posted @ 2019-03-13 11:32 快鸟 阅读(159) 评论(0) 推荐(0)
  2019年3月7日
摘要: 1. 开启 log4j 框架内部的日志输出到控制台 通过开启 log4j 内部日志,可以方便查看配置问题 n. 类作用 PropertyConfigurator : log4j.properties 对应的配置类 Q&A: 1. log4j.properties 配置了日志输出到控制台和文件,结果控 阅读全文
posted @ 2019-03-07 14:13 快鸟 阅读(263) 评论(0) 推荐(0)
  2019年2月1日
摘要: Dubbo 与 Spring 结合 基于 dubbo.jar 内的 META-INF/spring.handlers 配置,Spring 在遇到 dubbo 名称空间时,会回调 DubboNamespaceHandler。 所有 dubbo 的标签,都统一用 DubboBeanDefinitionP 阅读全文
posted @ 2019-02-01 17:57 快鸟 阅读(309) 评论(0) 推荐(0)
摘要: Dubbo 重试机制 通过前面 Dubbo 服务发现&引用 的分析,我们知道,Dubbo 的重试机制是通过 com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker 来实现的: public Result doInvoke(Invoca 阅读全文
posted @ 2019-02-01 17:56 快鸟 阅读(1511) 评论(0) 推荐(0)
摘要: Dubbo 服务调用 根据上图,可以看出,服务调用过程为: Consumer 端的 Proxy 调用 Cluster 层选择集群中的某一个 Invoker(负载均衡) Invoker 最终会调用 Protocol 层进行 RPC 通讯(netty,tcp 长连接),将服务调用信息和配置信息进行传递 阅读全文
posted @ 2019-02-01 17:55 快鸟 阅读(606) 评论(0) 推荐(0)
摘要: Dubbo 服务发现&引用 Dubbo 引用的服务消费者最终会构造成一个 Spring 的 Bean,具体是通过 ReferenceBean 来实现的。它是一个 FactoryBean,所有的服务消费者 Bean 都通过它来生产。 ReferenceBean#getObject() --> Refe 阅读全文
posted @ 2019-02-01 17:54 快鸟 阅读(1457) 评论(0) 推荐(0)
摘要: Dubbo 服务注册&暴露 Dubbo 服务暴露过程是通过 com.alibaba.dubbo.config.spring.ServiceBean 来实现的。Spring 容器 refresh() 完成后,会发送 ContextRefreshedEvent,ServiceBean 会接收到这个 ev 阅读全文
posted @ 2019-02-01 17:52 快鸟 阅读(987) 评论(0) 推荐(0)
摘要: Protocol & Filter Dubbo 服务暴露和服务引用都是通过的 com.alibaba.dubbo.rpc.Protocol 来实现的。它是一个 SPI 扩展。 @SPI("dubbo") public interface Protocol { int getDefaultPort() 阅读全文
posted @ 2019-02-01 17:51 快鸟 阅读(872) 评论(0) 推荐(0)
摘要: Dubbo SPI:(version:2.6.*) Dubbo 微内核 + 插件 模式,得益于 Dubbo SPI 。其中 ExtentionLoader是 Dubbo SPI 最核心的类,它负责扩展点的加载和生命周期管理。 ExtensionLoader ExtensionLoader 类似于 J 阅读全文
posted @ 2019-02-01 17:49 快鸟 阅读(449) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 24 下一页