master
童成 2023-10-26 11:06:56 +08:00
parent 6b12b8c6f7
commit 54979c89fe
1 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,8 @@
package com.four.common.duck.my; package com.four.common.duck.my;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date; import java.util.Date;
/** /**
@ -39,11 +42,15 @@ public class MyFile {
/** /**
* *
*/ */
@DateTimeFormat(pattern = "yyyy-mm-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-mm-dd HH:mm:ss")
private Date startTime; private Date startTime;
/** /**
* *
*/ */
@DateTimeFormat(pattern = "yyyy-mm-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-mm-dd HH:mm:ss")
private Date endTime; private Date endTime;
/** /**