con = DriverManager.getConnection("jdbc:mysql:"+"//localhost:3306/world","root","1234"); 在world后面加上 ?serverTimezone=UTC 参考链接