package github.javaguide; import github.javaguide.remoting.transport.ClientTransport; import github.javaguide.proxy.RpcClientProxy; import github.javaguide.remoting.transport.socket.SocketRpcClient; /** * @author shuang.kou * @createTime 2020年05月10日 07:25:00 */ public class RpcFrameworkSimpleClientMain { public static void main(String[] args) { ClientTransport clientTransport = new SocketRpcClient(); RpcClientProxy rpcClientProxy = new RpcClientProxy(clientTransport); HelloService helloService = rpcClientProxy.getProxy(HelloService.class); String hello = helloService.hello(new Hello("111", "222")); System.out.println(hello); } }