mysql时区问题:当我们在使用jdbc方式连接数据库时,如果版本较高的mysql需要为连接字符串设置时区,下面提供两种常用的时区设置 1.设置为中国时区: jdbc:mysql://localhost:3306/studysystem?serverTimezone=Asia/Shanghai 2.设置为世界标准时区,比北京时间慢八小时 jdbc:mysql://localhost:3306/studysystem?serverTimezone=UTC