Solve the problem because the MySQL database connection error time zone
1. Configure MySQL my.ini file in the directory
[mysqld]
...
...
# Set the default time zone
default-time-zone='+08:00'
[mysqld]
2. connect to the database administrator privileges
select now (); database query time
set global time_zone = '+8: 00'; database set time is normal time
3. After adding the database connection properties serverTimezone url
url = jdbc: mysql: // localhost:? 3306 / db serverTimezone time = GMT value of the database area