java.sql.SQLException: Can't map timezone '' to canonical timezone.

将配置文件的mysql的jdbc:mysql://localhost:3306/renren_security?useSSL=false&useUnicode=true&characterEncoding=utf-8&useLegacyDatetimeCode=false

改成jdbc:mysql://127.0.0.1:3316/esb_netty?useSSL=false&useUnicode=true&characterEncoding=utf-8&useLegacyDatetimeCode=false&serverTimezone=GMT

 

其实只添加了&serverTimezone=GMT

 

posted @ 2022-04-28 11:34  会飞的猪仔  阅读(47)  评论(0)    收藏  举报