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

comments

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