提交 50808a01 编写于 作者: 武汉红喜's avatar 武汉红喜

comments

上级 683f2827
......@@ -5,9 +5,7 @@ import org.nustaq.serialization.FSTConfiguration;
import java.io.IOException;
/**
* Created on 2019/8/5.
*
* @author shenhongxi
* @author shenhongxi 2019/8/5
*/
public class FSTSerialization implements Serialization {
......
......@@ -15,7 +15,8 @@ import java.util.List;
* <pre>
* 对于嵌套场景无法支持
* </pre>
*
*
* @author shenhongxi 2019/8/5
*/
public class FastJsonSerialization implements Serialization {
......
......@@ -3,9 +3,7 @@ package org.hongxi.whatsmars.common.serialize;
import java.io.*;
/**
* Created on 2019/8/5.
*
* @author shenhongxi
* @author shenhongxi 2019/8/5
*/
public class JavaSerialization implements Serialization {
......
......@@ -6,9 +6,7 @@ import javax.naming.OperationNotSupportedException;
import java.io.IOException;
/**
* Created on 2019/8/5.
*
* @author shenhongxi
* @author shenhongxi 2019/8/5
*/
public class MsgpackSerialization implements Serialization {
......
......@@ -10,6 +10,7 @@ import java.lang.reflect.Method;
/**
* protobuf序列化器,支持基本数据类型及其包装类、String、Throwable、Protobuf2/3对象
*
* @author shenhongxi 2019/8/5
*/
public class ProtobufSerialization implements Serialization {
......
......@@ -3,9 +3,7 @@ package org.hongxi.whatsmars.common.serialize;
import org.junit.Test;
/**
* Created on 2019/8/5.
*
* @author shenhongxi
* @author shenhongxi 2019/8/5
*/
public class SerializationTest {
......
......@@ -5,20 +5,22 @@ import org.msgpack.annotation.Message;
import java.io.Serializable;
/**
* @author shenhongxi 2019/8/5
*/
@Message
@Data
public class User implements Serializable {
private static final long serialVersionUID = -7723128823885218090L;
private static final long serialVersionUID = -7723128823885218090L;
String name;
int age;
String name;
int age;
public User() {
}
public User() {}
public User(String name, int age) {
this.name = name;
this.age = age;
}
this.name = name;
this.age = age;
}
}
\ No newline at end of file
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册