注意 @DateTimeFormat 和@JsonFormat 使用场景的不同

来源:互联网 发布:arduino编程语言 编辑:程序博客网 时间:2024/06/01 09:11

@DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")  用在VO上接收参数

@JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")   用于输出格式化的日期

阅读全文
0 0