Issue
Answer
这是因为MySQL的版本是8.0以上的版本缘故,需要在连接数据库的url后面加上以下语句“?serverTimezone=GMT%2B8”
private static String url = "jdbc:mysql://localhost:3306/world?serverTimezone=GMT%2B8";
这是因为MySQL的版本是8.0以上的版本缘故,需要在连接数据库的url后面加上以下语句“?serverTimezone=GMT%2B8”
private static String url = "jdbc:mysql://localhost:3306/world?serverTimezone=GMT%2B8";