我一直在使用Jersey进行REST API并返回JSON。在客户端,我使用google-gson。在反序列化JSON的同时,我遇到了以下错误。 com.google.gson.JsonParseException: The JsonDeserializer MapTypeAdapter failed to deserialized json object {} given the type in
我在GSON中遇到了一些奇怪的行为。 如果我有下面的类结构: public interface Animal {
public void nothing();
}
public class Cat implements Animal {
private String name;
public Cat(String name) {
super();