java.sql.SQLException: The server time zone value '�й���׼ʱ��' is unrecognized

跟風遠走 提交于 2020-08-13 06:44:45

idea数据库连接字符串需要添加一些参数;

?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai

【完整的连接】

spring.datasource.url=jdbc:mysql://localhost:3306/mydb?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai

【参考】

https://blog.csdn.net/qq_43371004/article/details/98385445?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!