Mysql dependence has been introduced, and used in the database version. 6 mysql above.
Spring Boot + jar using mysql error 8 appears: Unable to open JDBC Connection for DDL execution
Because of time zone problems caused by version, using the 5.7 or less are not being given,
Solution:
To configure the database url address "serverTimezone = UTC"
MySQL jdbc version 6.0 or later must be configured "serverTimezone" parameter
On behalf of UTC is Universal Time
If we use the time is Beijing time zone is east eight districts, leading UTC eight hours. url time zone using China Standard Time. Also on serverTimezone = Asia / Shanghai
url addition serverTimezone = Asia / Shanghai