dubbo-spring
文章平均质量分 69
学习dubbo同时了解spring
不回头的蜗牛
勤于实践,时时记录
展开
-
dubbo学习篇1 注解之 @Reference 原理解析
一. 使用注解在dubbo springboot 使用时,在需要调用的服务接口上使用@Reference 即可直接调用远程服务@Reference(version = "1.0.0", application = "${dubbo.application.id}") private HelloService helloService;比如上述样式 调...原创 2019-09-29 20:59:34 · 20354 阅读 · 1 评论 -
dubbo学习篇2 注解之 @Service 原理解析
一.使用注解在dubbo springboot 使用时,在需要调用的服务接口上使用@Service 即可将接口实现作为服务暴露 即可给消费者调用@Service(version = "1.0.0", application = "${dubbo.application.id}", protocol = "${dubbo.protocol.id}", ...原创 2019-09-30 11:45:07 · 3147 阅读 · 0 评论 -
dubbo学习篇3 之服务发布流程
dubbo的服务发布流程 网上资料已经非常多 参照了网上资料 记录下调试学习过程承接学习篇2中提到最终是由public class ServiceBean<T> extends ServiceConfig<T> implements ApplicationListener<ContextRefreshedEvent>public void onAp...原创 2019-09-30 21:01:00 · 852 阅读 · 0 评论 -
dubbo学习篇4 之spi机制
在学习篇3中 serverbean中执行导出的最后代码为Exporter<?> exporter = protocol.export(wrapperInvoker);其中protocol为spi机制动态生成的对象,而且依次调用了RegistryProtocolDubboProtocolpublic <T> Exporter<T> export...原创 2019-10-02 16:41:09 · 788 阅读 · 0 评论 -
spring boot redis kv 乱码
redisTemplate 默认的序列化为jdkSerializeable 这种方式会导致key/value出现\xAC\xED\x00\x05t\x00\x011 这样的乱码会导致两个问题a.不易阅读b.无法跟其他语言交互以下为解决过程1.添加config类为redisTemplate配置默认的序列化模式 redisTemplate.setKeySe...原创 2018-05-01 15:20:25 · 387 阅读 · 0 评论