mysql中的Date日期格式的问题:只有日期没有时间及格式化时间

只有日期没有时间,把xml中的date改为timestamp

格式化最简单的方法:@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")

猜你喜欢

转载自www.cnblogs.com/MarsMercury/p/11615485.html