MySQL8.0在项目中的使用

1.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
  使用root用户登录mysql,set global time_zone = '+8:00';
2.MySQL6.0之后Driver名由“com.mysql.jdbc.Driver”改为“com.mysql.cj.jdbc.Driver”。
3.The connection property ‘zeroDateTimeBehavior’ acceptable values are: ‘CONVERT_TO_NULL’, ‘EXCEPTION’ or ‘ROUND’. The value ‘convertToNull’ is not acceptable.
  MySQL6.0之后zeroDateTimeBehavior=convertToNull改为zeroDateTimeBehavior= CONVERT_TO_NULL

原文地址:https://www.cnblogs.com/god-monk/p/9761949.html