2017-12-16 17:55
楼上正解.自建类继承JFinalJson,重写toJson.return JSON.parse((super.toJson(object))).toString(); //JSON为fastjson,这里可自行定义SerializerFeature自建工厂类实现IJsonFactory接口.配置常量时:me.setJsonFactory(new YourFastJsonFactory());