cn.k7g.alloy.core.objectmapper.TimeExtraSerializer Maven / Gradle / Ivy
package cn.k7g.alloy.core.objectmapper;
import cn.k7g.alloy.annotation.TimeExtra;
import cn.k7g.alloy.utils.TimeUtil;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import lombok.Data;
import java.io.IOException;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.util.Date;
/**
* 序列化时间扩展器
* @author victor-wu
* @date 2021/9/27 下午1:10
*/
public class TimeExtraSerializer extends JsonSerializer