package com.njzscloud.common.core.jackson.serializer;

import com.fasterxml.jackson.databind.deser.std.NumberDeserializers;
import com.fasterxml.jackson.databind.module.SimpleModule;


/**
 * Long 序列化
 */
public class LongModule extends SimpleModule {
    {
        this.addSerializer(Long.class, new LongSerializer())
                .addDeserializer(Long.class, new NumberDeserializers.LongDeserializer(Long.class, null));
    }
}
