修改跨服取数据序列化方法
parent
8b87171a00
commit
21871f13f2
|
|
@ -14,7 +14,7 @@ public class PropertyItemDeserializer implements JsonDeserializer<PropertyItem>
|
||||||
if (type != null && type.getAsString().equals("baubles")) {
|
if (type != null && type.getAsString().equals("baubles")) {
|
||||||
return context.deserialize(json, Baubles.class);
|
return context.deserialize(json, Baubles.class);
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return context.deserialize(json, Baubles.class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -9,11 +9,6 @@ import com.ljsd.jieling.util.UUIDEnum;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
|
||||||
//@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
|
|
||||||
//@JsonSubTypes({
|
|
||||||
// @JsonSubTypes.Type(value = Baubles.class, name = "baubles")
|
|
||||||
//})
|
|
||||||
public class PropertyItem extends MongoBase {
|
public class PropertyItem extends MongoBase {
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(PropertyItem.class);
|
private static final Logger LOGGER = LoggerFactory.getLogger(PropertyItem.class);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue