The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone.

这里记录一个测试新项目时遇到的一个老问题,以前就遇到了,总是不注意

 The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone.

这里有一个简便的方式再记录一次加深印象:

原本:

jdbc.url = jdbc:mysql://localhost:3306/query?useUnicode=true&characterEncoding=utf-8

时区问题,改成下面的就好了

//localhost:3306/query?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF-8&useSSL=false

主要是要加上:serverTimezone=UTC

posted @ 2019-09-04 02:36  X凯  阅读(137)  评论(0编辑  收藏  举报