数据库中查出来的时间多8小时

serverTimezone的配置改为Asia/Shanghai
url: jdbc:mysql://47.100.245.18:3306/bfc?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull&useSSL=false

猜你喜欢

转载自blog.csdn.net/Mr_ZhangAdd/article/details/86137514