玩MwssagePack的时候,它给我报了这个错:
org.msgpack.MessageTypeException: Cannot find template for class java.lang.Object class. Try to add @message annotation to the class or call MessagePack.register(Type).
当遇到这个的时候首先看看要序列化的类有木有加@Message这个注解。
@Messagepublic class UserInfo{ private int age; private String name; public int getAge() { return age; } public void setAge(int age) { this.age = age; } public String getName() { return name; } public void setName(String name) { this.name = name; }}