Open chshyin opened 7 years ago
FastJsonSerialization中 public ObjectOutput serialize(URL url, OutputStream output) throws IOException { return new FastJsonObjectOutput(output); }
public ObjectInput deserialize(URL url, InputStream input) throws IOException { return new FastJsonObjectInput(input); }
,output的writeUTF和input的readUTF,均未指定编码,当消费者和服务提供者编码不一致会产生乱发进而导致json反序列化异常
FastJsonSerialization中 public ObjectOutput serialize(URL url, OutputStream output) throws IOException { return new FastJsonObjectOutput(output); }
,output的writeUTF和input的readUTF,均未指定编码,当消费者和服务提供者编码不一致会产生乱发进而导致json反序列化异常