Fix deserialize error for raft beat

This commit is contained in:
KomachiSion 2020-05-29 15:38:25 +08:00
parent fc714dac74
commit da4cc10e8a

View File

@ -233,7 +233,7 @@ public class RaftController {
String value = URLDecoder.decode(entity, "UTF-8");
value = URLDecoder.decode(value, "UTF-8");
JsonNode jsonObject = JacksonUtils.createEmptyJsonNode();
JsonNode jsonObject = JacksonUtils.toObj(value);
Datum datum = JacksonUtils.toObj(jsonObject.get("datum").toString(), Datum.class);
RaftPeer source = JacksonUtils.toObj(jsonObject.get("source").toString(), RaftPeer.class);