问题:
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 specifc time zone value if you want to utilize time zone support.
解决方法:
输入mysql> show variables like “%time_zone%”;
显示如下;
再输入 mysql> set global time_zone = ‘+8:00’;
这样就完成了。
ps:其实可以直接设置第一步;
补充:在idea中web.WEB-INF.lib中的数据库连接文件,配置ProjectStructure的时候,其中的lib中只能存在一个mysql-connector-java-8.0.17.jar。不能出现两个。