1.问题
当使用Idea中的Datasource工具连接mysql数据库出现
Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' property
2.解决方法
直接在数据库url连接中加上时区的设定“?serverTimezone=GMT”即可搞定
jdbc:mysql://localhost:3306/test?serverTimezone=GMT
直接在数据库url连接中加上时区的设定“?serverTimezone=GMT”即可搞定
jdbc:mysql://localhost:3306/test?serverTimezone=GMT