解决spring-boot:The server time zone value ‘�й���ʱ��’ is unrecognized or represents more than one time zone
问题截图:
问题描述
The server time zone value ‘�й���ʱ��’ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the ‘serverTimezone’ configuration property) to use a more specific time zone value if you want to utilize time zone support.
解决思路
使用的开发工具是IDEA,新建的项目是spring-boot项目,版本号是2.3.6
由于我之前在别的项目已经使用过mybatis逆向工程的创建,所以再次运行应该没有错误才对,比较之后发现,上次运行的版本是2.4.4,不存在时区的问题,出现和我一样问题的小伙伴可以升级一下版本号,也可以添加一下时区就好了
正常运行啦
感谢观看