类 JacksonConfig
java.lang.Object
com.elitesland.ystdms.sys.config.JacksonConfig
Jackson配置类,用于处理Date和LocalDateTime的序列化和反序列化
支持多种日期格式:ISO-8601格式和"yyyy-MM-dd HH:mm:ss"格式
-
嵌套类概要
嵌套类修饰符和类型类说明static class自定义Date反序列化器,支持多种日期格式static class自定义LocalDateTime反序列化器,支持多种日期格式 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明com.fasterxml.jackson.databind.ObjectMapperobjectMapper(org.springframework.http.converter.json.Jackson2ObjectMapperBuilder builder) 配置ObjectMapper,注册自定义的Date和LocalDateTime反序列化器 同时配置全局序列化格式和时区
-
构造器详细资料
-
JacksonConfig
public JacksonConfig()
-
-
方法详细资料
-
objectMapper
@Bean @Primary public com.fasterxml.jackson.databind.ObjectMapper objectMapper(org.springframework.http.converter.json.Jackson2ObjectMapperBuilder builder) 配置ObjectMapper,注册自定义的Date和LocalDateTime反序列化器 同时配置全局序列化格式和时区
-