SpringBoot time display format and time zone configuration [4]

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

Published 92 original articles · Likes5 · Visitors 10,000+

Guess you like

Origin blog.csdn.net/xfb1989/article/details/104023583