在使用动态代理的方法连接数据库报错:The server time zone value '�й���׼ʱ��' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver

在Mybatis的配置文件properties配置文件中url加入

?serverTimezone=UTC

jdbc:mysql://localhost:3306/qihoo?serverTimezone=UTC

posted @ 2019-12-23 17:20  进击测开的小Cj  阅读(333)  评论(0)    收藏  举报