连接数据库出现The server time zone value '�й���׼ʱ��' is unrecogni的解决方案

将spring.datasource.url后加入?serverTimezone=UTC

 String url = "jdbc:mysql://localhost:3306/shcoolnews?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8";
posted @ 2020-10-23 17:34  DurianTRY  阅读(4721)  评论(0编辑  收藏  举报