首先看数据库链接字符串,当前我的是这样的:
jdbc:mysql://localhost:3306/sqzp?useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT&useSSL=true
只要改成serverTimezone=Asia/Shanghai就OK了!
希望对你有所帮助
期待一起学习
首先看数据库链接字符串,当前我的是这样的:
jdbc:mysql://localhost:3306/sqzp?useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT&useSSL=true
只要改成serverTimezone=Asia/Shanghai就OK了!
希望对你有所帮助
期待一起学习