🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
``` ByteArrayOutputStream out = new ByteArrayOutputStream(); HessianOutput output = new HessianOutput(out); output.writeObject(new User("Jim", 20)); byte[] bytes = out.toByteArray(); System.err.println(bytes); ByteArrayInputStream in = new ByteArrayInputStream(bytes); HessianInput input= new HessianInput(in); User u = (User) input.readObject(); System.err.println(u); ```