原因是少了时区,加&serverTimezone=UTC
jdbc:mysql://127.0.0.1:3306/my_test?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false&serverTimezone=UTC
参考文章:https://www.cnblogs.com/flyingDragon/p/11268920.html
原文地址:https://www.cnblogs.com/xiaostudy/p/12329426.html
时间: 2024-10-10 00:36:42