protected static void renderJSON(Object o) {
GsonBuilder gsonbuilder = new GsonBuilder().serializeNulls();
Gson gson = gsonbuilder.setDateFormat("yyyy-MM-dd HH:mm:ss").setPrettyPrinting().create();
renderJSON(gson.toJson(o));
}
返回时间强制转换
最新推荐文章于 2023-11-30 09:41:01 发布