仿dubbo轻量级RPC框架,基于Netty,Zookeeper,SpringBoot
<dependency>
<groupId>com.lhf.dubbo</groupId>
<artifactId>dubbo-config-spring</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
SpringBoot项目的启动类添加@EnableDubbo
注解;
RPC服务接口标注@RpcService(interfaceClass = HelloService.class)
配置zk注册中心地址和dubbo服务暴露的接口即可
dubbo:
registry:
connect-string: 192.168.42.100:2181,192.168.42.101:2181,192.168.42.102:2181
protocol:
port: 9090
创作不易,靓仔靓女给个star吧!!
具体可参考dubbo-test测试模块
欢迎关注公众号小锋coding
留言交流!