JSON日期格式处理
protected static SerializeConfig mapping = new SerializeConfig();

    private static String dateFormat;
    static {
        dateFormat = "yyyy-MM-dd HH:mm:ss";
        mapping.put(Date.class, new SimpleDateFormatSerializer(dateFormat));
    }

 

posted on 2016-04-12 14:05  james-roger  阅读(234)  评论(0编辑  收藏  举报