Mysql版本:8.0.17
在为MyBatis添加数据源配置时,在application.yml文件中添加了MySQL数据源连接信息。
运行代码生成类报错,The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone.
解决方法:在配置文件中的数据库url中添加serverTimezone=UTC参数即可解决。
Mysql版本:8.0.17
在为MyBatis添加数据源配置时,在application.yml文件中添加了MySQL数据源连接信息。
运行代码生成类报错,The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone.
解决方法:在配置文件中的数据库url中添加serverTimezone=UTC参数即可解决。
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。