spring.jackson.time-zone=GMT+8
spring.jackson.date-format=yyyy-MM-dd HH:mm:ss SSS
@RequestMapping("/getdate")
@ResponseBody
public Date getDate(Date sdate){
return sdate;
}
http://localhost/myspringboot/getdate?sdate=1989-10-01