Skip to content

iqiancheng/simple-rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

simple-rpc

Demo of Simplified Remote-Procedure-Call

如何启动

  1. 启动服务端:直接运行 Main.javamain 方法
public static void main(String[] args) {
    RpcServer server = new RpcServer(9527);
    HeyService heyService = new HeyServiceImpl();
    server.registry(heyService);
    server.start();
}
  1. 运行client包下的 Client.javamain 方法调用远程服务
public static void main(String[] args) {
    Client client = new Client("localhost", 9527);
    HeyService proxy = client.getProxy(HeyService.class);
    proxy.say("dubbo");
}
  1. 查看日志

Hello Dubbo

About

Simplify Remote Procedure Call

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages