摘要: 服务引用过程中涉及到服务发现机制 RegistryProtocol#doRefer private <T> Invoker<T> doRefer(Cluster cluster, Registry registry, Class<T> type, URL url) { // 创建 RegistryD 阅读全文
posted @ 2021-05-12 18:41 BINGJJFLY 阅读(384) 评论(0) 推荐(0) 编辑
摘要: dubbo:reference中配置url <dubbo:reference interface="org.apache.dubbo.demo.DemoService" url="dubbo://localhost:20880" /> 通过 -D 参数指定 java -Dorg.apache.dub 阅读全文
posted @ 2021-05-11 17:00 BINGJJFLY 阅读(958) 评论(0) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/prestigeding/article/details/80621535 Dubbo官网写的非常详细:https://dubbo.apache.org/zh/docs/v2.7/dev/source/refer-service/ 设计图 Refer 阅读全文
posted @ 2021-05-11 16:23 BINGJJFLY 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 参考:https://mp.weixin.qq.com 官网地址:https://dubbo.apache.org/zh/docs/v2.7/dev/source/dubbo-spi/ 双亲委托模式的弊端 判断类是否加载的时候,应用类加载器会顺着双亲路径往上判断,直到启动类加载器.但是启动类加载器不 阅读全文
posted @ 2021-04-25 11:57 BINGJJFLY 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.cnblogs.com/happyflyingpig/p/9071316.html 自定义模板 public static class Builder { private ${class0.name} instance = new ${class0.name}(); p 阅读全文
posted @ 2021-01-20 17:14 BINGJJFLY 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/prestigeding/article/details/80536385 设计图 ServiceBean类结构图 InitializingBean:其声明的接口为afterPropertiesSet方法,顾名思义,就是在bean初始化所有属性之后调 阅读全文
posted @ 2021-01-06 17:46 BINGJJFLY 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1、Dubbo的一些自定义标签 <!-- 提供方应用信息,用于计算依赖关系 --> <dubbo:application name="uop" owner="uce"/> <!-- 使用zookeeper注册中心暴露服务地址 --> <dubbo:registry protocol="zookeep 阅读全文
posted @ 2021-01-06 10:43 BINGJJFLY 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 方法模板 ** * $params$$return$ * @author xxx * @date $DATE$ $TIME$ * @version V1.0.0 **/ 参数函数 groovyScript(" if (\"${_1}\".length() == 2) { return '\\n * 阅读全文
posted @ 2020-12-31 10:52 BINGJJFLY 阅读(76) 评论(0) 推荐(0) 编辑
摘要: #!/bin/sh ## java env export JAVA_HOME=/data/opt/jdk1.8.0_181 export JRE_HOME=$JAVA_HOME/jre export JAVA_BIN=$JAVA_HOME/bin export CLASSPATH=.:$JAVA_H 阅读全文
posted @ 2020-12-09 11:25 BINGJJFLY 阅读(86) 评论(0) 推荐(0) 编辑
摘要: svn checkout https://www.xxx.com/svn/document/xxx svn add xxx.txt svn commit -m "xxx" svn update svn rm xxx.txt svn log # 修改的文件内容回退掉 svn revert xxx.tx 阅读全文
posted @ 2020-11-26 12:58 BINGJJFLY 阅读(74) 评论(0) 推荐(0) 编辑