idea综合问题(ctrl+f搜索)

1.maven不自动下jar包问题

在maven命令框中输入 mvn -U idea:idea
将继续下载未下载完整的依赖,超级好用!!!

2.idea datasource无法链接 提示: Server returns invalid timezone. Need to set 'serverTimezone' property.

原因是MySQL驱动中默认时区是UTC,与本地时间(中国)相差八个小时,所以链接不上。
可以用两种方法解决,都是解决时区问题。

点开最右侧 Advanced,找到 serverTimezone,在右侧value处填写 GMT,保存即可!(或填写 Asia/Shanghai)

也可以在url后添加:?serverTimezone=GMT

备注:

GMT(Greenwich Mean Time):格林威治标准时间
UTC:世界标准时间
CST(China Standard Time):中国标准时间

GMT + 8 = UTC + 8 = CST

猜你喜欢

转载自blog.csdn.net/u012374381/article/details/113241737