起因:
与其他同事对接接口的时候,接口调用报错了,错误如下:
解决方法:
在出错的地方加上注解
代码:
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
起因:
与其他同事对接接口的时候,接口调用报错了,错误如下:
解决方法:
在出错的地方加上注解
代码:
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")