页面运行空白,报错The server time zone value ’ й ʱ ’ is unrecognized or represents more than one time zone
问题:使用了Mysql最新版驱动所以报错
解决方案:在项目代码-数据库连接URL后,加上 (注意大小写必须一致)
?serverTimezone=UTC
// An highlighted block
Connection con=DriverManager.getConnection("jdbc:mysql://LocalHost:3306/test?serverTimezone=UTC","root","123456");