显然,要使MySQL JDBC驱动程序的5.1.33版与UTC时区一起使用,必须
serverTimezone在连接字符串中显式指定。
jdbc:mysql://localhost/db?useUnipre=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC

显然,要使MySQL JDBC驱动程序的5.1.33版与UTC时区一起使用,必须
serverTimezone在连接字符串中显式指定。
jdbc:mysql://localhost/db?useUnipre=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC