异常1:Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException
解决方案:
检查pom.xml下mysql版本和自己的版本是否一致,如果不一致,把pom下的版本改成自己实际的版本。
异常2:时区异常
The server time zone value ‘???ú±ê×??±??’ is unrecognized or represents more than one time zone.
解决方案:
在mysql下新建查询,执行下面语句:
set global time_zone='+8:00'