public static void main(String[] args) { try(IClient client = new FastRpcClient()) { client.connect(new InetSocketAddress("127.0.0.1", 4567)); ITestService service = client.getService("test", ITestService.class); String say = service.say("Hello!"); System.out.println(say); } catch (Exception e) { e.printStackTrace(); } }
请发表评论