jackson springboot配置时间格式

Posted King-D

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jackson springboot配置时间格式相关的知识,希望对你有一定的参考价值。

yml文件中这样进行配置

spring:
  jackson:
    date-format: yyyy-MM-dd HH:mm:ss

spring.jackson.date-format
指定日期格式,比如yyyy-MM-dd HH:mm:ss

以上是关于jackson springboot配置时间格式的主要内容,如果未能解决你的问题,请参考以下文章

SpringBoot 修改返回日期格式

SpringBoot全局Jackson配置未生效

SpringBoot之日期时间格式化

SpringBoot之日期时间格式化

springboot 格式化返回日期

springBoot返回xml格式结果