随笔分类 - Dubbo
摘要:服务引用过程中涉及到服务发现机制 RegistryProtocol#doRefer private <T> Invoker<T> doRefer(Cluster cluster, Registry registry, Class<T> type, URL url) { // 创建 RegistryD
阅读全文
摘要:dubbo:reference中配置url <dubbo:reference interface="org.apache.dubbo.demo.DemoService" url="dubbo://localhost:20880" /> 通过 -D 参数指定 java -Dorg.apache.dub
阅读全文
摘要:参考:https://blog.csdn.net/prestigeding/article/details/80621535 Dubbo官网写的非常详细:https://dubbo.apache.org/zh/docs/v2.7/dev/source/refer-service/ 设计图 Refer
阅读全文
摘要:参考:https://mp.weixin.qq.com 官网地址:https://dubbo.apache.org/zh/docs/v2.7/dev/source/dubbo-spi/ 双亲委托模式的弊端 判断类是否加载的时候,应用类加载器会顺着双亲路径往上判断,直到启动类加载器.但是启动类加载器不
阅读全文
摘要:参考:https://blog.csdn.net/prestigeding/article/details/80536385 设计图 ServiceBean类结构图 InitializingBean:其声明的接口为afterPropertiesSet方法,顾名思义,就是在bean初始化所有属性之后调
阅读全文
摘要:1、Dubbo的一些自定义标签 <!-- 提供方应用信息,用于计算依赖关系 --> <dubbo:application name="uop" owner="uce"/> <!-- 使用zookeeper注册中心暴露服务地址 --> <dubbo:registry protocol="zookeep
阅读全文
摘要:参考:https://www.jianshu.com/p/73224a6c07bb
阅读全文
摘要:https://www.jianshu.com/u/f7daa458b874
阅读全文
摘要:参考 https://blog.csdn.net/aa494661239/article/details/80522007 遇到的问题 本地注册服务时,连接的是测试环境的200服务器(zookeeper://192.xxx.xxx.200),测试时服务时而调的到时而调不到。因为开发人员都是往200上
阅读全文

浙公网安备 33010602011771号