【Java】时间转json格式化
@DateTimeFormat(pattern="yyyy-MM-ddHH:mm:ss")
@JsonFormat(pattern="yyyy-MM-ddHH:mm:ss")
publicjava.util.Date getOrderTime() {
returnthis.orderTime;
}
@JsonFormat(pattern="yyyy-MM-ddHH:mm:ss")
publicjava.util.Date getOrderTime() {
returnthis.orderTime;
}

浙公网安备 33010602011771号