在MySQL的URL後面加上“?serverTimezone=UTC” 時區問題
Caused by: com.mysql.cj.core.exceptions.InvalidConnectionAttributeException: 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.
升級後的mysql驅動類,Driver位置由com.mysql.jdbc.Driver 變爲com.mysql.cj.jdbc.Driver
Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
eclipse 導入mysqljar包
項目右鍵-->Build Path-->add External