cannot deserialize value of type

cannot deserialize value of type 'java.util.Date' from String "2019-09-08T04:00:00.000+0000":expected format "yyyy-MM-dd HH:mm:ss""

解决办法:

在对应的bean日期属性上增加注解 @JsonFormat 注解

    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date followTime;
转换默认格式为:年月日,如果传入的日期字符串没有包含 时分秒,则不需要增加注解,pattern 为当前接收的时间格式
 

转换格式问题,方便贴代码么