2022-05-04 05:40

赞一个 很好的扩展框架

2019-07-07 03:50

@JFinal 嗯 我已按你说的方法先用了,这样会比较方便,更省事了

2019-06-24 22:27

解决方法实际上很简单,不需要那么复杂:
第一步:
public static class PGObjectSerializer implements ObjectSerializer {
public final static PGObjectSerializer instance = new PGObjectSerializer();
@Override
public void write(JSONSerializer serializer, Object object, Object fieldName, Type fieldType, int features) throws IOException {
if(object!=null)
serializer.out.write(object.toString());
else
serializer.out.writeNull();
}
}
第二步:
SerializeConfig.getGlobalInstance().put(PGobject.class, PGObjectSerializer.instance);