將serverTimezone的配置改為Asia/Shanghai
url: jdbc:mysql://127.0.0.1:3306/bfc?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull&useSSL=false
如果此時還解決不了問題 請在返回DTO類/添加中VO類中添加注解
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") private Date createDate;
