Spring内置时间格式转换 在application.yml文件中添加配置文件自己设置时间格式并设置时区 spring: jackson: date-format: yyyy-MM-dd HH:mm:ss time-zone: Asia/Shanghai