当前位置:网站首页>JSON date time date format

JSON date time date format

2022-04-23 15:14:00 A run

The three commonly used date formatting annotations are explained as follows :

// Input parameter format annotation 
@DateTimeFormat(pattern=”yyyy-MM-dd HH:mm:ss”)

// Format notes for meals 
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JSONField(format = "yyyy-MM-dd HH:mm:ss") // It is suggested that 

because @RequestBody Annotation first json String to the corresponding Vo object ,Vo The annotation added on the field in the object takes effect again ,@DateTimeFormat Just formatting , Unable to perform format verification .



 

版权声明
本文为[A run]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231407312532.html