只有日期没有时间,把xml中的date改为timestamp
格式化最简单的方法:@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
本文介绍如何将XML文件中的日期字段转换为包含时间和时区信息的timestamp格式,使用@JsonFormat注解实现日期格式化。
只有日期没有时间,把xml中的date改为timestamp
格式化最简单的方法:@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
转载于:https://www.cnblogs.com/MarsMercury/p/11615485.html

被折叠的 条评论
为什么被折叠?
