Spring MVC date handling

 

1 Vo to the front desk

   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")

 

2 The foreground dateStr is given to the background

    StringDate ---------- parse ----" Date --------- (mybatis insert, update) ----------" Field of type DB DateTime

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326986958&siteId=291194637