MySQL 8.0 在JDBC连接MySql时报错:You must configure either the server or JDBC driver (via the ······
在配置文件中,末尾增加参数:serverTimezone=UTC
spring.datasource.url=jdbc:mysql://localhost:3306/lalala?characterEncoding=UTF-8&serverTimezone=UTC
UTC 是统一标准世界时间
参考文章:
https://blog.csdn.net/weixin_43225235/article/details/105889169
...
原创
2020-08-31 21:41:53 ·
205 阅读 ·
0 评论