解决方案:String url = jdbc:mysql://localhost:3306/jdbc?serverTimezone=GMT%2B8&useSSL=false
注意⚠️把
?serverTimezone=GMT%2B8&useSSL=false复制到url后即可 严格区分大小写
12-29
4495
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
01-16
283
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-04
554
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)