报错:java.sql.SQLException: The server

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

在IDEA运行是报出例如相识的错误时:

 
 
  1. java.sql.SQLException: 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.

1561968132859

那么此时查看你的mysql依赖是否版本过高:

1561968187363

这时将它降到6以下试试,楼主降到5.1.45就OK了

1561968234900

猜你喜欢

转载自www.cnblogs.com/leccoo/p/11117641.html