错误:The server time zone value is unrecognized or represents more than one time zone解决方案

在spring boot项目中链接MySql数据库时出现了这个错误
当报错此信息是,你只需要在通过在数据库连接URL后,加上
?serverTimezone=UTC即可
如下图所示
在这里插入图片描述
本人修改的了两个文件,供大家参考
mybatis-generator.xml和application,properties两个文件中的url
修改后即可完美运行!!!

猜你喜欢

转载自blog.csdn.net/weixin_40485391/article/details/107046255